summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-09-25 16:56:41 (GMT)
committerSteven Knight <knight@baldmt.com>2002-09-25 16:56:41 (GMT)
commitd23e503a2499c58c9826b3b341ff33f79bc20b10 (patch)
treef9827472eb38e3d2df1af48fae50cfa3043ef4e2 /runtest.py
parent72042342ebcbc24c523fb4e1413821c73e585a2a (diff)
downloadSCons-d23e503a2499c58c9826b3b341ff33f79bc20b10.zip
SCons-d23e503a2499c58c9826b3b341ff33f79bc20b10.tar.gz
SCons-d23e503a2499c58c9826b3b341ff33f79bc20b10.tar.bz2
Windows portability
Diffstat (limited to 'runtest.py')
-rw-r--r--runtest.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/runtest.py b/runtest.py
index 6d15490..497668f 100644
--- a/runtest.py
+++ b/runtest.py
@@ -41,6 +41,7 @@
#
import getopt
+import glob
import os
import os.path
import re
@@ -62,7 +63,7 @@ else:
# not an executable, so it's all right.
lib_dir = os.path.join(sys.exec_prefix, "lib", "python" + sys.version[0:3])
-opts, tests = getopt.getopt(sys.argv[1:], "adqp:Xx:",
+opts, args = getopt.getopt(sys.argv[1:], "adqp:Xx:",
['all', 'debug', 'exec=', 'quiet', 'package='])
for o, a in opts:
@@ -75,8 +76,9 @@ for o, a in opts:
cwd = os.getcwd()
-if tests:
- map(os.path.abspath, tests)
+if args:
+ for a in args:
+ tests.extend(glob.glob(os.path.abspath(a)))
elif all:
def find_Test_py(arg, dirname, names):
global tests