mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 11:11:35 +01:00
Get rid of imp, started giving deprecation warning every time in Python 3.7 in Ubuntu 19.04.
Please python stop torturing me with refactors. Make ./run -u blow up if executable not found, otherwise I go crazy. Get ./test-gdb back to life after the ./run relative path refactor, forgot to test this.
This commit is contained in:
@@ -50,7 +50,7 @@ If given, run only the given tests. Otherwise, run all tests.
|
||||
path_abs = os.path.abspath(path)
|
||||
dirpath_relative_root = path_abs[rootdir_abs_len + 1:]
|
||||
for in_filename in in_filenames:
|
||||
if os.path.splitext(in_filename)[1] in self.env['userland_in_exts']:
|
||||
if os.path.splitext(in_filename)[1] in self.env['build_in_exts']:
|
||||
path_relative_root = os.path.join(dirpath_relative_root, in_filename)
|
||||
my_path_properties = path_properties.get(path_relative_root)
|
||||
if my_path_properties.should_be_tested(self.env):
|
||||
@@ -62,7 +62,7 @@ If given, run only the given tests. Otherwise, run all tests.
|
||||
run_test_args = {
|
||||
'expected_exit_status': my_path_properties['exit_status'],
|
||||
'run_args': cur_run_args,
|
||||
'run_obj': self.import_path_main('run'),
|
||||
'run_obj': common.import_path_main('run'),
|
||||
'test_id': path_relative_root,
|
||||
}
|
||||
if my_path_properties['receives_signal']:
|
||||
|
||||
Reference in New Issue
Block a user