summaryrefslogtreecommitdiffstats
path: root/test/SCONSFLAGS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-11-06 12:25:25 (GMT)
committerSteven Knight <knight@baldmt.com>2002-11-06 12:25:25 (GMT)
commit8dbe61168174137944a5bc55ea5a9ff389336376 (patch)
treeb507cef9d3ffa1248dde67c7f26368841c148b42 /test/SCONSFLAGS.py
parentd3a159a23fdeaa76c7931c7f8b1b7dafd43b4b99 (diff)
downloadSCons-8dbe61168174137944a5bc55ea5a9ff389336376.zip
SCons-8dbe61168174137944a5bc55ea5a9ff389336376.tar.gz
SCons-8dbe61168174137944a5bc55ea5a9ff389336376.tar.bz2
Refactor command-line parsing. (Steve Leblanc)
Diffstat (limited to 'test/SCONSFLAGS.py')
-rw-r--r--test/SCONSFLAGS.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/SCONSFLAGS.py b/test/SCONSFLAGS.py
index f8d757a..2d0ac8d 100644
--- a/test/SCONSFLAGS.py
+++ b/test/SCONSFLAGS.py
@@ -29,7 +29,7 @@ import TestSCons
import os
import string
-test = TestSCons.TestSCons(match = TestCmd.match_re)
+test = TestSCons.TestSCons()
wpath = test.workpath()
@@ -59,11 +59,10 @@ test.fail_test(string.find(test.stdout(), '-H, --help-options') == -1)
os.environ['SCONSFLAGS'] = '-Z'
-test.run(arguments = "-H", stderr = r"""
-SCons warning: SCONSFLAGS option -Z not recognized
-File "[^"]*", line \d+, in \S+
-""")
+test.run(arguments = "-H", status = 2,
+ stderr = r"""usage: scons [OPTION] [TARGET] ...
-test.fail_test(string.find(test.stdout(), '-H, --help-options') == -1)
+SCons error: no such option: -Z
+""")
test.pass_test()