diff options
author | Cassidy Burden <cburden@google.com> | 2016-06-29 10:28:15 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-06-29 17:27:32 -0700 |
commit | bfe9c5300fca09e8790ed25b41028cba8cb0a78f (patch) | |
tree | 2efbc1041302d1a422f548acb37c8f78d3fe268d /binary_search_tool/test | |
parent | 2e9f8a097c095ca93052b368ffab4c850d4d3d0f (diff) | |
download | toolchain-utils-bfe9c5300fca09e8790ed25b41028cba8cb0a78f.tar.gz |
Add argument overriding to bisect.py
Add the ability to override the default arguments given to the package
and object bisecting tools. This allows users to specify their own
test/install/etc. script but keep the others the same.
Example 1 (do boot test instead of interactive test):
./bisect.py package daisy 172.17.211.182 --test_script=cros_pkg/boot_test.sh
Example 2 (do package bisector system test instead of interactive test):
./bisect.py package daisy 172.17.211.182 \
--test_script=cros_pkg/testing_test.sh --install_script=""
TEST=Run unit tests and ran above examples among others (such as
overriding verbose, prune, etc. options)
CQ-DEPEND=CL:*266996
Change-Id: I5ee24826d4d7e22e7328ce98c6b8cda9917df533
Reviewed-on: https://chrome-internal-review.googlesource.com/266305
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/binary_search_tool/test/binary_search_tool_tester.py b/binary_search_tool/test/binary_search_tool_tester.py index 96f3e2b4..1be4481a 100755 --- a/binary_search_tool/test/binary_search_tool_tester.py +++ b/binary_search_tool/test/binary_search_tool_tester.py @@ -58,8 +58,8 @@ class BisectTest(unittest.TestCase): class FullBisector(bisect.Bisector): """Test bisector to test bisect.py with""" - def __init__(self, options): - super(BisectTest.FullBisector, self).__init__(options) + def __init__(self, options, overrides): + super(BisectTest.FullBisector, self).__init__(options, overrides) def PreRun(self): GenObj() @@ -78,7 +78,7 @@ class BisectTest(unittest.TestCase): return 0 def test_full_bisector(self): - ret = bisect.Run(self.FullBisector({})) + ret = bisect.Run(self.FullBisector({}, {})) self.assertEquals(ret, 0) self.assertFalse(os.path.exists(common.OBJECTS_FILE)) self.assertFalse(os.path.exists(common.WORKING_SET_FILE)) |