diff options
author | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2024-10-07 21:05:51 (GMT) |
---|---|---|
committer | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2024-10-07 21:05:51 (GMT) |
commit | 518b512cc15dcfe6c905fac9b006410b72125710 (patch) | |
tree | 45541069a504e11c487c9e21cbeab761e7f79ffc /test | |
parent | 9e7f85a8e79058191d93122e4b7d3d22dae969b2 (diff) | |
parent | fc36781173e80c99774284c653557c6cb9675c88 (diff) | |
download | SCons-518b512cc15dcfe6c905fac9b006410b72125710.zip SCons-518b512cc15dcfe6c905fac9b006410b72125710.tar.gz SCons-518b512cc15dcfe6c905fac9b006410b72125710.tar.bz2 |
Merge branch 'Master' into jbrill-msvs-tests
Diffstat (limited to 'test')
-rw-r--r-- | test/AddOption/basic.py | 3 | ||||
-rw-r--r-- | test/SCONSFLAGS.py | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/test/AddOption/basic.py b/test/AddOption/basic.py index 83297a8..f488c70 100644 --- a/test/AddOption/basic.py +++ b/test/AddOption/basic.py @@ -38,7 +38,7 @@ from SCons.Script.SConsOptions import SConsOption DefaultEnvironment(tools=[]) env = Environment(tools=[]) AddOption( - '--force', + '-F', '--force', action="store_true", help='force installation (overwrite any existing files)', ) @@ -74,6 +74,7 @@ if GetOption('zcount'): test.run('-Q -q .', stdout="None\nNone\n") test.run('-Q -q . --force', stdout="True\nNone\n") +test.run('-Q -q . -F', stdout="True\nNone\n") test.run('-Q -q . --prefix=/home/foo', stdout="None\n/home/foo\n") test.run('-Q -q . -- --prefix=/home/foo --force', status=1, stdout="None\nNone\n") # check that SetOption works on prefix... diff --git a/test/SCONSFLAGS.py b/test/SCONSFLAGS.py index 4a44f30..ffccf1f 100644 --- a/test/SCONSFLAGS.py +++ b/test/SCONSFLAGS.py @@ -62,15 +62,15 @@ test.run(arguments = "-H") test.must_not_contain_any_line(test.stdout(), ['Help text.']) test.must_contain_all_lines(test.stdout(), ['-H, --help-options']) -os.environ['SCONSFLAGS'] = '-Z' - expect = r"""usage: scons [OPTIONS] [VARIABLES] [TARGETS] SCons Error: no such option: -Z """ -test.run(arguments = "-H", status = 2, - stderr = expect, match=TestSCons.match_exact) +test.run(arguments="-Z", status=2, stderr=expect, match=TestSCons.match_exact) + +os.environ['SCONSFLAGS'] = '-Z' +test.run(status=2, stderr=expect, match=TestSCons.match_exact) test.pass_test() |