diff options
author | Cassidy Burden <cburden@google.com> | 2016-08-03 09:46:20 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-08-03 15:47:32 -0700 |
commit | b1d0c4e00ed787befa9591231ac5d04d2cf6795d (patch) | |
tree | 17608aadfe72610c115bacaf78d3d994df720bbb /binary_search_tool/test | |
parent | 2a141a72ae3f5d420f892cbc7a81fc40db076022 (diff) | |
download | toolchain-utils-b1d0c4e00ed787befa9591231ac5d04d2cf6795d.tar.gz |
binary search tool: Change verify_level to boolean
Previously, the user could run multiple levels of verification. This
would essentially repeat verification multiple times. It's unsure why a
user would want to set verify_level to any value other than 0 or 1. Thus
verify_level is more appropriate as a boolean.
TEST=Run unit tests
Change-Id: Id8832c54e2733881bf23f48af2a3b4c294117d1c
Reviewed-on: https://chrome-internal-review.googlesource.com/272766
Commit-Ready: Cassidy Burden <cburden@google.com>
Tested-by: Cassidy Burden <cburden@google.com>
Reviewed-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'binary_search_tool/test')
-rwxr-xr-x | binary_search_tool/test/binary_search_tool_tester.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/binary_search_tool/test/binary_search_tool_tester.py b/binary_search_tool/test/binary_search_tool_tester.py index 4ec920b8..28e6afc8 100755 --- a/binary_search_tool/test/binary_search_tool_tester.py +++ b/binary_search_tool/test/binary_search_tool_tester.py @@ -259,7 +259,7 @@ class BisectingUtilsTest(unittest.TestCase): test_script='./is_good.py', prune=True, file_args=True, - verify_level=1) + verify=True) with self.assertRaises(AssertionError): bss.DoVerify() @@ -299,7 +299,7 @@ class BisectingUtilsTest(unittest.TestCase): test_script='./is_good.py', prune=True, file_args=True, - verify_level=1) + verify=True) self.check_output() def test_noincremental_prune(self): @@ -312,7 +312,7 @@ class BisectingUtilsTest(unittest.TestCase): prune=True, noincremental=True, file_args=True, - verify_level=0) + verify=False) self.assertEquals(ret, 0) self.check_output() @@ -348,7 +348,7 @@ class BisectStressTest(unittest.TestCase): test_script='./is_good.py', prune=True, file_args=True, - verify_level=0) + verify=False) self.assertEquals(ret, 0) self.check_output() |