commit | 47dcd1eddc452d919b9b3fee41b0e2543b801284 | [log] [tgz] |
---|---|---|
author | Johnny Chen <johnny.chen@apple.com> | Wed May 16 19:43:14 2012 +0000 |
committer | Johnny Chen <johnny.chen@apple.com> | Wed May 16 19:43:14 2012 +0000 |
tree | c4887094c66867121271fa52856d2499f0b63bdf | |
parent | 8aa684d1a57fe01a3ed912599bd0473d7c1ee4b1 [diff] |
Make the script more friendly when running under python debugger. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@156939 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/redo.py b/test/redo.py index e8ca91b..eee1130 100755 --- a/test/redo.py +++ b/test/redo.py
@@ -113,6 +113,8 @@ global filename_components test_dir = sys.path[0] + if not test_dir: + test_dir = os.getcwd() if not test_dir.endswith('test'): print "This script expects to reside in lldb's test directory." sys.exit(-1)