aboutsummaryrefslogtreecommitdiff
path: root/crosperf/experiment_file.py
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2016-11-02 10:03:17 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-11-07 13:31:02 -0800
commit4b133961b76c2cb8bc58f0ea2cded9e3438ffb6f (patch)
treeeb560da8a69b754f33a31e3e44ae7bffa7282753 /crosperf/experiment_file.py
parentc39917fe61858e884d06656122cf88a8c66fd825 (diff)
downloadtoolchain-utils-4b133961b76c2cb8bc58f0ea2cded9e3438ffb6f.tar.gz
Download autotest files with crosperf and add autotest path to test_that
when running non-telemetry tests BUG: chromium:647429 TEST:crosperf unit tests, sample experiment file that runs WebGl_Aquarium Change-Id: I067e350fee36596ce269b954773c39a3868632aa Reviewed-on: https://chrome-internal-review.googlesource.com/302296 Commit-Ready: Manoj Gupta <manojgupta@google.com> Tested-by: Manoj Gupta <manojgupta@google.com> Reviewed-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'crosperf/experiment_file.py')
-rw-r--r--crosperf/experiment_file.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/crosperf/experiment_file.py b/crosperf/experiment_file.py
index fe22bec8..016e9d86 100644
--- a/crosperf/experiment_file.py
+++ b/crosperf/experiment_file.py
@@ -156,9 +156,19 @@ class ExperimentFile(object):
if chromeos_root_field:
chromeos_root = chromeos_root_field.GetString()
value = field.GetString()
- xbuddy_path = settings.GetXbuddyPath(value, board, chromeos_root,
- 'quiet')
- res += '\t#actual_image: %s\n' % xbuddy_path
+ autotest_field = settings.fields['autotest_path']
+ autotest_path = ''
+ if autotest_field.assigned:
+ autotest_path = autotest_field.GetString()
+ image_path, autotest_path = settings.GetXbuddyPath(value,
+ autotest_path,
+ board,
+ chromeos_root,
+ 'quiet')
+ res += '\t#actual_image: %s\n' % image_path
+ if not autotest_field.assigned:
+ res += '\t#actual_autotest_path: %s\n' % autotest_path
+
res += '}\n\n'
return res