aboutsummaryrefslogtreecommitdiff
path: root/crosperf/machine_manager_unittest.py
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2016-07-22 16:28:12 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-07-27 07:23:18 -0700
commit9099a788cd7124024559c064e425ed9caef6e0ac (patch)
tree87df663ff83ab398121cd66e9528422979a63cf6 /crosperf/machine_manager_unittest.py
parent19e119b46c14f57988ba3504369e815d3aab0122 (diff)
downloadtoolchain-utils-9099a788cd7124024559c064e425ed9caef6e0ac.tar.gz
[crosperf] Clean up exceptions.
Found all instances of 'raise Exception' and changed them to raise something slightly more specific. Changed a few 'except Exception' statements appropriately as well. BUG=chromium:566255 TEST=None Change-Id: If2666bd55838342bc71431e5e6ab2157c2c9e125 Reviewed-on: https://chrome-internal-review.googlesource.com/270731 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'crosperf/machine_manager_unittest.py')
-rwxr-xr-xcrosperf/machine_manager_unittest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crosperf/machine_manager_unittest.py b/crosperf/machine_manager_unittest.py
index 321b5878..ccf2cd1e 100755
--- a/crosperf/machine_manager_unittest.py
+++ b/crosperf/machine_manager_unittest.py
@@ -194,7 +194,7 @@ class MachineManagerTest(unittest.TestCase):
mock_run_cmd.return_value = 1
try:
self.mm.ImageMachine(machine, LABEL_LUMPY)
- except Exception:
+ except RuntimeError:
self.assertEqual(mock_checksummer.call_count, 0)
self.assertEqual(mock_run_cmd.call_count, 2)
self.assertEqual(mock_run_croscmd.call_count, 1)