summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-04-03 17:07:02 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-04-03 17:07:02 (GMT)
commitb62645bd92013b90b14a0835554f690a5acae61c (patch)
treeb008102ca827059d645d91d97e5f3c45b0719fa2 /runtest.py
parent5eb18d24a338f99ee100c77c3e822f726de80cf7 (diff)
downloadSCons-b62645bd92013b90b14a0835554f690a5acae61c.zip
SCons-b62645bd92013b90b14a0835554f690a5acae61c.tar.gz
SCons-b62645bd92013b90b14a0835554f690a5acae61c.tar.bz2
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 75e9eb7..0d9bbaf 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'):