aboutsummaryrefslogtreecommitdiff
path: root/crosperf/experiment_file.py
diff options
context:
space:
mode:
authorAhmad Sharif <asharif@chromium.org>2012-10-09 17:48:09 -0700
committerAhmad Sharif <asharif@chromium.org>2012-10-09 17:48:09 -0700
commitf395c26437cbdabc2960447fba89b226f4409e82 (patch)
treec67df25ac39b2c2b3d6d9aa847391edebbb0c478 /crosperf/experiment_file.py
parenta171f8d10c0507127de54c60076f1f59feef3629 (diff)
downloadtoolchain-utils-f395c26437cbdabc2960447fba89b226f4409e82.tar.gz
Synced repos to: 63271
Diffstat (limited to 'crosperf/experiment_file.py')
-rw-r--r--crosperf/experiment_file.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/crosperf/experiment_file.py b/crosperf/experiment_file.py
index bde2a4d7..fc0f16ab 100644
--- a/crosperf/experiment_file.py
+++ b/crosperf/experiment_file.py
@@ -4,6 +4,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import os.path
import re
from settings import Settings
from settings_factory import SettingsFactory
@@ -143,6 +144,11 @@ class ExperimentFile(object):
field = settings.fields[field_name]
if field.assigned:
res += "\t%s: %s\n" % (field.name, field.GetString())
+ if field.name == "chromeos_image":
+ real_file = (os.path.realpath
+ (os.path.expanduser(field.GetString())))
+ if real_file != field.GetString():
+ res += "\t#actual_image: %s\n" % real_file
res += "}\n\n"
return res