Use autotest's generate_test_report in test_that
Update generate_test report to conform to style and fix
broken imports from chromite/
BUG=b:25929635
TEST=`test_that dummy_Pass` passes.
Change-Id: I9a58eb2dbd773a1e3f88fafaacee289c130d29f8
Reviewed-on: https://chromium-review.googlesource.com/316524
Commit-Ready: Christopher Wiley <[email protected]>
Tested-by: Christopher Wiley <[email protected]>
Reviewed-by: Simran Basi <[email protected]>
diff --git a/site_utils/test_runner_utils.py b/site_utils/test_runner_utils.py
index 6708590..361d3b5 100755
--- a/site_utils/test_runner_utils.py
+++ b/site_utils/test_runner_utils.py
@@ -42,8 +42,6 @@
TEST_KEY_PATH = ('/mnt/host/source/src/scripts/mod_for_test_scripts/'
'ssh_keys/%s' % _TEST_KEY_FILENAME)
-_TEST_REPORT_SCRIPTNAME = '/usr/bin/generate_test_report'
-
_LATEST_RESULTS_DIRECTORY = '/tmp/test_that_latest'
@@ -675,11 +673,8 @@
logging.info('Finished pretend run. Exiting.')
return 0
- # TODO b/25929635 (sbasi/wiley) Move the generate test report script.
- if not os.path.exists(_TEST_REPORT_SCRIPTNAME):
- logging.info('%s does not exist. Exiting.', _TEST_REPORT_SCRIPTNAME)
- return 0
- test_report_command = [_TEST_REPORT_SCRIPTNAME]
+ test_report_command = [os.path.join(os.path.dirname(__file__),
+ 'generate_test_report')]
# Experimental test results do not influence the exit code.
test_report_command.append('--ignore_experimental_tests')
if whitelist_chrome_crashes: