summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-04-03 02:57:10 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-04-03 02:57:10 (GMT)
commit870764ac99c8fd4b0622d7dcf7ca3163aa32e5dc (patch)
tree3e0fd1b1c12114d29b502d55fb0050be011b80af /runtest.py
parent4bd38e06ea2bfe5a1c7b9fdb6a962eef33e8a1ef (diff)
downloadSCons-870764ac99c8fd4b0622d7dcf7ca3163aa32e5dc.zip
SCons-870764ac99c8fd4b0622d7dcf7ca3163aa32e5dc.tar.gz
SCons-870764ac99c8fd4b0622d7dcf7ca3163aa32e5dc.tar.bz2
Fix runtest.py to work with win32 paths specified as .\test\xyz
Diffstat (limited to 'runtest.py')
-rwxr-xr-xruntest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtest.py b/runtest.py
index ae456a2..75e9eb7 100755
--- a/runtest.py
+++ b/runtest.py
@@ -663,6 +663,7 @@ def find_Tests_py(directory):
def find_py(directory):
""" Look for end-to-end tests """
result = []
+
for dirpath, dirnames, filenames in os.walk(directory):
# Skip folders containing a sconstest.skip file
if 'sconstest.skip' in filenames:
@@ -707,6 +708,8 @@ else:
testpaths = args
for tp in testpaths:
+ # Clean up path so it can match startswith's below
+ tp = os.path.normpath(tp)
for path in glob.glob(tp):
if os.path.isdir(path):
if path.startswith('src'):