aboutsummaryrefslogtreecommitdiff
path: root/binary_search_tool
diff options
context:
space:
mode:
authorCassidy Burden <cburden@google.com>2016-06-22 17:24:10 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-06-24 15:50:08 -0700
commit83558f81695925a40d5066c24404903b29976686 (patch)
tree736a9e74dbf3272082d3bad6f1bdde4ea253166e /binary_search_tool
parent545b947888df1d07f4ad530e1c5eec930fc283c2 (diff)
downloadtoolchain-utils-83558f81695925a40d5066c24404903b29976686.tar.gz
binary search tool: Enforce execution from root directory
Both cros_pkg and sysroot_wrapper rely on the current working directory being toolchain-utils/binary_search_tool. bisect.py will now enforce this by cd'ing to this directory before execution. TEST=Run unit tests and cros_pkg CQ-DEPEND=CL:*266365 Change-Id: Ie30272ba31cd80a1b2c715e0f9a42a4e26889f16 Reviewed-on: https://chrome-internal-review.googlesource.com/266329 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')
-rwxr-xr-xbinary_search_tool/bisect.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/binary_search_tool/bisect.py b/binary_search_tool/bisect.py
index e8bd5ec7..007531c6 100755
--- a/binary_search_tool/bisect.py
+++ b/binary_search_tool/bisect.py
@@ -144,4 +144,5 @@ def Main(argv):
if __name__ == '__main__':
+ os.chdir(os.path.dirname(__file__))
sys.exit(Main(sys.argv[1:]))