mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
test-gdb working again
This commit is contained in:
9
test-gdb
9
test-gdb
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user