aboutsummaryrefslogtreecommitdiff
path: root/crosperf/crosperf_unittest.py
diff options
context:
space:
mode:
authorZhizhou Yang <zhizhouy@google.com>2019-07-16 16:23:02 -0700
committerZhizhou Yang <zhizhouy@google.com>2019-07-22 20:59:50 +0000
commit7aa250ecfc39d4ceca8ccc302f37261fc133bb45 (patch)
tree7bb6eead6b6fef097d041c23956b04097da20342 /crosperf/crosperf_unittest.py
parentd6b61669352054206b4ed1e524a6487c78555143 (diff)
downloadtoolchain-utils-7aa250ecfc39d4ceca8ccc302f37261fc133bb45.tar.gz
crosperf: introduce skylab field and pass to experiment and label
This is the initial patch to migrate crosperf from autotest to skylab for lab runs. This patch introduces skylab field in experiment, parsed it in settings_factory and restructured label class and experiment class so that further steps can use skylab field. TEST=Passed all unit tests BUG=chromium:984790 Change-Id: I1104fea739977c522938790012f4f3f522f9d65f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1705234 Reviewed-by: Caroline Tice <cmtice@chromium.org> Tested-by: Zhizhou Yang <zhizhouy@google.com> Auto-Submit: Zhizhou Yang <zhizhouy@google.com> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Diffstat (limited to 'crosperf/crosperf_unittest.py')
-rwxr-xr-xcrosperf/crosperf_unittest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/crosperf/crosperf_unittest.py b/crosperf/crosperf_unittest.py
index 4fb58793..64676d77 100755
--- a/crosperf/crosperf_unittest.py
+++ b/crosperf/crosperf_unittest.py
@@ -4,6 +4,7 @@
# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+
"""Unittest for crosperf."""
from __future__ import print_function
@@ -58,7 +59,7 @@ class CrosperfTest(unittest.TestCase):
settings = crosperf.ConvertOptionsToSettings(options)
self.assertIsNotNone(settings)
self.assertIsInstance(settings, settings_factory.GlobalSettings)
- self.assertEqual(len(settings.fields), 28)
+ self.assertEqual(len(settings.fields), 29)
self.assertTrue(settings.GetField('rerun'))
argv = ['crosperf/crosperf.py', 'temp.exp']
options, _ = parser.parse_known_args(argv)