aboutsummaryrefslogtreecommitdiff
path: root/crosperf/crosperf_unittest.py
diff options
context:
space:
mode:
authorZhizhou Yang <zhizhouy@google.com>2018-11-15 13:55:12 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-16 15:10:52 -0800
commite2b0d3ef23cfdf19db4f39cb900845a35c3af82b (patch)
tree6a815bbbbe69315018bac6cc1b687bbc24d94b03 /crosperf/crosperf_unittest.py
parent69c558b42977054d6168ad13829ebdd80ad77a7c (diff)
downloadtoolchain-utils-e2b0d3ef23cfdf19db4f39cb900845a35c3af82b.tar.gz
crosperf: Passing dso and weight to result_cache.py
To generate and collect dso sample count, this patch passes dso and weight into result_cache.py, by setting them as members of Benchmark object. Meantime, fixed all related unit tests. BUG=chromium:902785 TEST=Passed all unit tests and sample tests locally. Change-Id: I483a00d199d48fd5e77d882d7ac81bf93b6940df Reviewed-on: https://chromium-review.googlesource.com/1338344 Commit-Ready: Zhizhou Yang <zhizhouy@google.com> Tested-by: Zhizhou Yang <zhizhouy@google.com> Reviewed-by: Caroline Tice <cmtice@chromium.org>
Diffstat (limited to 'crosperf/crosperf_unittest.py')
-rwxr-xr-xcrosperf/crosperf_unittest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crosperf/crosperf_unittest.py b/crosperf/crosperf_unittest.py
index b361f15b..db82ca8c 100755
--- a/crosperf/crosperf_unittest.py
+++ b/crosperf/crosperf_unittest.py
@@ -55,7 +55,7 @@ class CrosperfTest(unittest.TestCase):
settings = crosperf.ConvertOptionsToSettings(options)
self.assertIsNotNone(settings)
self.assertIsInstance(settings, settings_factory.GlobalSettings)
- self.assertEqual(len(settings.fields), 25)
+ self.assertEqual(len(settings.fields), 26)
self.assertTrue(settings.GetField('rerun'))
argv = ['crosperf/crosperf.py', 'temp.exp']
options, _ = parser.parse_known_args(argv)