Fix gtest parser to work correctly with tags
The parser fails to correctly locate the output .DEBUG file in the case of
tagged tests.
BUG=None
TEST=desktopui_PyAutoFunctionalTests should show up properly spread
into individual tests on the autotest dashboard.
Change-Id: I562e8d3570ef996c21b6239907c5c7500ba6af9b
Reviewed-on: https://gerrit.chromium.org/gerrit/11405
Reviewed-by: Mike Truty <[email protected]>
Tested-by: Nirnimesh <[email protected]>
Commit-Ready: Nirnimesh <[email protected]>
diff --git a/server/site_gtest_runner.py b/server/site_gtest_runner.py
index b07bfd9..1d86716 100644
--- a/server/site_gtest_runner.py
+++ b/server/site_gtest_runner.py
@@ -37,7 +37,7 @@
Args:
gtest_entry: Test tuple from control file. See documentation in
- server_job_utils.test_item class.
+ site_server_job_utils.test_item class.
machine: Name (IP) if remote host to run tests on.
work_dir: Local directory to run tests in.
@@ -68,8 +68,9 @@
Then creates entries in status.log file for each test.
"""
# Find gtest log files from the autotest client run.
- log_path = os.path.join(self._results_dir, self._gtest.test_name,
- 'debug', self._gtest.test_name + '.DEBUG')
+ log_path = os.path.join(
+ self._results_dir, self._gtest.tagged_test_name,
+ 'debug', self._gtest.tagged_test_name + '.DEBUG')
if not os.path.exists(log_path):
logging.error('gtest log file "%s" is missing.', log_path)
return