mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
test-userland: remove todo that was already done
This commit is contained in:
@@ -14,7 +14,6 @@ class Main(common.LkmcCliFunction):
|
||||
)
|
||||
self.add_argument(
|
||||
'tests',
|
||||
metavar='tests',
|
||||
nargs='*',
|
||||
help='''\
|
||||
If given, run only the given tests. Otherwise, run all tests.
|
||||
@@ -49,16 +48,10 @@ If given, run only the given tests. Otherwise, run all tests.
|
||||
sources = self.env['tests']
|
||||
for source in sources:
|
||||
run_args['userland'] = source
|
||||
test_id_string = self.test_setup(run_args, source)
|
||||
run_args['background'] = True
|
||||
test_id_string = self.test_setup(run_args, source)
|
||||
exit_status = run(**run_args)
|
||||
self.log_info(self.seconds_to_hms(run.ellapsed_seconds))
|
||||
# TODO forward all args attempt. In particular, --dry-run.
|
||||
#new_env = self.env.copy()
|
||||
#new_env['userland'] = source
|
||||
#new_env['emulator'] = emulator
|
||||
#new_env.update(run_args)
|
||||
#exit_status = run(**new_env)
|
||||
if exit_status != 0:
|
||||
self.log_error('test failed, program exit status: {} test id: {}'.format(exit_status, test_id_string))
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user