baremetal: get exit status working with on_exit :-)

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-08 00:00:01 +00:00
parent 18ca0b3c9c
commit 406ee82cf3
16 changed files with 79 additions and 34 deletions

View File

@@ -55,9 +55,9 @@ If given, run only the given tests. Otherwise, run all tests.
'run_obj': self.import_path_main('run'),
'test_id': path_relative_root,
}
if path_relative_root != os.path.join('baremetal', 'assert_fail.c'):
# if path_relative_root != os.path.join('baremetal', 'lkmc_assert_fail.c'):
# Workaround fro: https://github.com/cirosantilli/linux-kernel-module-cheat/issues/59
test_args['expected_exit_status'] = 0
# test_args['expected_exit_status'] = 0
error = thread_pool.submit(test_args)
if error is not None:
if self.env['quit_on_fail']: