test-gdb working again

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent 080f4e9d4d
commit 8641cb7784
2 changed files with 40 additions and 16 deletions

View File

@@ -5,7 +5,7 @@ import os
import common
class Main(common.LkmcCliFunction):
class Main(common.TestCliFunction):
def __init__(self):
super().__init__(
defaults={
@@ -43,9 +43,7 @@ found by searching for the Python test files.
for test_script_noext in test_scripts_noext:
common_args = self.get_common_args()
common_args['baremetal'] = test_script_noext
test_id_string = self.test_setup(common_args, test_script_noext)
test_id_string = self.test_setup(test_script_noext)
run_args = common_args.copy()
run_args['wait_gdb'] = True
run_args['background'] = True
@@ -55,8 +53,7 @@ found by searching for the Python test files.
gdb_args['test'] = True
run_gdb(**gdb_args)
run_thread.join()
self.test_teardown(run)
self.test_teardown(run, 0, test_id_string)
if __name__ == '__main__':
Main().cli()