test-userland: remove todo that was already done

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-01-22 00:00:00 +00:00
parent 8499df9879
commit a1ae3fbd26

View File

@@ -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)