[Lldb-commits] [lldb] r156939 - /lldb/trunk/test/redo.py
Johnny Chen
johnny.chen at apple.com
Wed May 16 12:43:14 PDT 2012
Author: johnny
Date: Wed May 16 14:43:14 2012
New Revision: 156939
URL: http://llvm.org/viewvc/llvm-project?rev=156939&view=rev
Log:
Make the script more friendly when running under python debugger.
Modified:
lldb/trunk/test/redo.py
Modified: lldb/trunk/test/redo.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/redo.py?rev=156939&r1=156938&r2=156939&view=diff
==============================================================================
--- lldb/trunk/test/redo.py (original)
+++ lldb/trunk/test/redo.py Wed May 16 14:43:14 2012
@@ -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)
More information about the lldb-commits
mailing list