summaryrefslogtreecommitdiff
path: root/runtest.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-04-03 13:07:02 -0400
committerWilliam Deegan <bill@baddogconsulting.com>2017-04-03 13:07:02 -0400
commitc2b87b8a6a28ed3daddb8d795d765c63b9059c25 (patch)
treeb008102ca827059d645d91d97e5f3c45b0719fa2 /runtest.py
parent65255a168807a9014ce04a9bd8cc6e5838f6bd1a (diff)
downloadscons-c2b87b8a6a28ed3daddb8d795d765c63b9059c25.tar.gz
change logic to drop ./ or .\ from front of specified test/testpath so logic to match test or src will work properly. This is mainly just useful on windows when autocompleting paths
Diffstat (limited to 'runtest.py')
-rwxr-xr-xruntest.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtest.py b/runtest.py
index 75e9eb70..0d9bbafd 100755
--- a/runtest.py
+++ b/runtest.py
@@ -709,7 +709,13 @@ else:
for tp in testpaths:
# Clean up path so it can match startswith's below
- tp = os.path.normpath(tp)
+ # sys.stderr.write("Changed:%s->"%tp)
+ # remove leading ./ or .\
+ if tp[0] == '.' and tp[1] in (os.sep, os.altsep):
+ tp = tp[2:]
+ # tp = os.path.normpath(tp)
+ # sys.stderr.write('->%s<-'%tp)
+ # sys.stderr.write("to:%s\n"%tp)
for path in glob.glob(tp):
if os.path.isdir(path):
if path.startswith('src'):