diff options
author | Russel Winder <russel@winder.org.uk> | 2017-08-23 07:06:41 (GMT) |
---|---|---|
committer | Russel Winder <russel@winder.org.uk> | 2017-08-23 07:06:41 (GMT) |
commit | 19ae63da41fb2779021bd0028a7d7730f41c2021 (patch) | |
tree | 0763b7f670b3d7b65baf1bd550730f300c32cf2a /test | |
parent | e77ff3a91273d7fa5f7c440049ea76043b9bceb2 (diff) | |
parent | 939963642474e9f9b01adc6b42e5fda15de3fa89 (diff) | |
download | SCons-19ae63da41fb2779021bd0028a7d7730f41c2021.zip SCons-19ae63da41fb2779021bd0028a7d7730f41c2021.tar.gz SCons-19ae63da41fb2779021bd0028a7d7730f41c2021.tar.bz2 |
Merge mainline.
Diffstat (limited to 'test')
-rw-r--r-- | test/option-s.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/option-s.py b/test/option-s.py index bbde2d1..df7cd50 100644 --- a/test/option-s.py +++ b/test/option-s.py @@ -41,6 +41,11 @@ file.close() test.write('SConstruct', """ MyBuild = Builder(action = r'%(_python_)s build.py $TARGET') + +silent = ARGUMENTS.get('QUIET',0) +if silent: + SetOption('silent',True) + env = Environment(BUILDERS = { 'MyBuild' : MyBuild }) env.MyBuild(target = 'f1.out', source = 'f1.in') env.MyBuild(target = 'f2.out', source = 'f2.in') @@ -72,6 +77,15 @@ test.subdir( 'sub' ) test.write(['sub','SConstruct'],"") test.run(arguments = '-s -C sub', stdout = "" ) +test.unlink('f1.out') +test.unlink('f2.out') + +test.run(arguments = 'QUIET=1 f1.out f2.out', stdout = "scons: Reading SConscript files ...\nscons: done reading SConscript files.\n") +test.fail_test(not os.path.exists(test.workpath('f1.out'))) +test.fail_test(not os.path.exists(test.workpath('f2.out'))) + + + test.pass_test() |