aboutsummaryrefslogtreecommitdiff
path: root/crosperf/field.py
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2015-12-12 22:57:07 -0800
committerLuis Lozano <llozano@chromium.org>2015-12-14 05:06:48 +0000
commit75e1ccc6513c4529e47007105b7c523755f8e0c0 (patch)
tree9d40dbe355f0fd7dd45a1bbfcf6d4abdc2614197 /crosperf/field.py
parent14cf596e1e8c4e8677dd075dc5a0e7e480b9e3e9 (diff)
downloadtoolchain-utils-75e1ccc6513c4529e47007105b7c523755f8e0c0.tar.gz
Fix two minor bugs introduced in the Fix-It that broke nightly tests.
BUG=None TEST=Tested with role account running simple crosperf test. Change-Id: Ib9d69ce8815b674ad57784d90c7e3cc7a3fba6ed Reviewed-on: https://chrome-internal-review.googlesource.com/241967 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Luis Lozano <llozano@chromium.org> Tested-by: Luis Lozano <llozano@chromium.org>
Diffstat (limited to 'crosperf/field.py')
-rw-r--r--crosperf/field.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/crosperf/field.py b/crosperf/field.py
index 9106dbe7..b70fb557 100644
--- a/crosperf/field.py
+++ b/crosperf/field.py
@@ -97,6 +97,13 @@ class ListField(Field):
def GetString(self):
return " ".join(self._value)
+ def Append(self, value):
+ v = self._Parse(value)
+ if not self._value:
+ self._value = v
+ else:
+ self._value += v
+ self.assigned = True
class EnumField(Field):
"""Class of enum field."""