diff options
author | cmtice <cmtice@google.com> | 2014-04-09 10:58:51 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-04-11 20:01:27 +0000 |
commit | c454cee542ca459ef9bd87c9f72e81c822caf1e5 (patch) | |
tree | 39a5c1bdc6c53073e3589da913cef3790f816e7f /crosperf/results_cache_unittest.py | |
parent | 0537956ef5981f4069fcaaefd3d25298f9d6ebd8 (diff) | |
download | toolchain-utils-c454cee542ca459ef9bd87c9f72e81c822caf1e5.tar.gz |
Update unittests to all pass.
Fix the parameters to the various unittests so they match recent
changes and the unittests all pass again.
BUG=None
TEST=I ran all the unittests with the changes.
Change-Id: I083b5127a2ade8f1dbaf2bb173d82183871cb7c7
Reviewed-on: https://chrome-internal-review.googlesource.com/159915
Reviewed-by: Yunlian Jiang <yunlian@google.com>
Commit-Queue: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'crosperf/results_cache_unittest.py')
-rwxr-xr-x | crosperf/results_cache_unittest.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crosperf/results_cache_unittest.py b/crosperf/results_cache_unittest.py index 2a2ac719..5f7fbc97 100755 --- a/crosperf/results_cache_unittest.py +++ b/crosperf/results_cache_unittest.py @@ -114,13 +114,13 @@ keyvals = {'': 'PASS', 'b_stdio_putcgetc__0_': '0.100005711667', 'b_string_strst class MockResult(Result): - def __init__(self, logger, label): - super(MockResult, self).__init__(logger, label) + def __init__(self, logger, label, logging_level): + super(MockResult, self).__init__(logger, label, logging_level) def _FindFilesInResultsDir(self, find_args): return "" - def _GetKeyvals(self): + def _GetKeyvals(self, show_all_results): return keyvals @@ -128,8 +128,9 @@ class ResultTest(unittest.TestCase): mock_label = MockLabel("mock_label", "chromeos_image", "/tmp", "lumpy", "remote", "image_args", "image_md5sum", "cache_dir") def testCreateFromRun(self): - result = MockResult.CreateFromRun(logger.GetLogger(), self.mock_label, - output, error, 0, 0) + result = MockResult.CreateFromRun(logger.GetLogger(), "average", + self.mock_label, + output, error, 0, True, 0) self.assertEqual(result.keyvals, keyvals) self.assertEqual(result.chroot_results_dir, "/tmp/run_remote_tests.PO1234567/platform_LibCBench") |