diff options
author | Steven Knight <knight@baldmt.com> | 2002-09-25 16:56:41 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-09-25 16:56:41 (GMT) |
commit | d23e503a2499c58c9826b3b341ff33f79bc20b10 (patch) | |
tree | f9827472eb38e3d2df1af48fae50cfa3043ef4e2 /runtest.py | |
parent | 72042342ebcbc24c523fb4e1413821c73e585a2a (diff) | |
download | SCons-d23e503a2499c58c9826b3b341ff33f79bc20b10.zip SCons-d23e503a2499c58c9826b3b341ff33f79bc20b10.tar.gz SCons-d23e503a2499c58c9826b3b341ff33f79bc20b10.tar.bz2 |
Windows portability
Diffstat (limited to 'runtest.py')
-rw-r--r-- | runtest.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |