aboutsummaryrefslogtreecommitdiff
path: root/crosperf/benchmark_run_unittest.py
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2015-12-11 12:07:59 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-12-14 20:07:20 +0000
commite627fd61c2edba668eb2af8221892286b13f05a3 (patch)
treeee5ccc249db07b031c67fc83d1f4669c509c7720 /crosperf/benchmark_run_unittest.py
parent75e1ccc6513c4529e47007105b7c523755f8e0c0 (diff)
downloadtoolchain-utils-e627fd61c2edba668eb2af8221892286b13f05a3.tar.gz
Crosperf: Finish fixing unittest problems.
This patch finishes fixing the unittest problems. They now all work. BUG=chromium:538397 TEST=./run_tests.sh now completes with no errors. Change-Id: Ie501437d199bfafc8a84cd2a95862550992c2cb8 Reviewed-on: https://chrome-internal-review.googlesource.com/241925 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'crosperf/benchmark_run_unittest.py')
-rwxr-xr-xcrosperf/benchmark_run_unittest.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/crosperf/benchmark_run_unittest.py b/crosperf/benchmark_run_unittest.py
index 49171185..920b7d71 100755
--- a/crosperf/benchmark_run_unittest.py
+++ b/crosperf/benchmark_run_unittest.py
@@ -61,7 +61,7 @@ class BenchmarkRunTest(unittest.TestCase):
log_level="average", compiler="gcc")
logging_level = "average"
- m = MockMachineManager("/tmp/chromeos_root", 0, logging_level, '')
+ m = MockMachineManager("/tmp/chromeos_root", 0, logging_level)
m.AddMachine("chromeos2-row1-rack4-host9.cros")
bench = Benchmark("page_cycler.netsim.top_10", # name
"page_cycler.netsim.top_10", # test_name
@@ -231,9 +231,6 @@ class BenchmarkRunTest(unittest.TestCase):
br.ReadCache = FakeReadCacheException
br.machine = FakeAcquireMachine()
br.run()
- self.assertEqual (self.log_output,
- ['Releasing machine: chromeos1-row3-rack5-host7.cros',
- 'Released machine: chromeos1-row3-rack5-host7.cros'])
self.assertEqual (self.log_error,
["Benchmark run: 'test_run' failed: This is an exception test; it is supposed to happen"])
self.assertEqual (self.status, ['FAILED'])