diff options
author | Steven Knight <knight@baldmt.com> | 2003-12-01 13:06:29 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-12-01 13:06:29 (GMT) |
commit | 1449e5067298043a8cd9b26a9030f5909cfb00fb (patch) | |
tree | 6f7aaa5f6e05039884cb82deafa9a4f99b3682a7 /test/option--warn.py | |
parent | 04e36a29829d2fde6fe82af08bd1b5259ed7a7b9 (diff) | |
download | SCons-1449e5067298043a8cd9b26a9030f5909cfb00fb.zip SCons-1449e5067298043a8cd9b26a9030f5909cfb00fb.tar.gz SCons-1449e5067298043a8cd9b26a9030f5909cfb00fb.tar.bz2 |
Make the message about missing SConscript files a warning, not a hard write(), so it can be ignored/disabled. (Scott Fritchie)
Diffstat (limited to 'test/option--warn.py')
-rw-r--r-- | test/option--warn.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/option--warn.py b/test/option--warn.py index aa970fe..c8e16a9 100644 --- a/test/option--warn.py +++ b/test/option--warn.py @@ -82,4 +82,21 @@ scons: warning: No dependency generated for file: not_there\.h \(included from: File ".+", line \d+, in .+ """) +test.write("SConstruct", """\ +def build(target, source, env): + pass + +env=Environment() +env['BUILDERS']['test'] = Builder(action=build) +env.test(target='foo', source='foo.c') +SConscript('no_such_file') +""") + +test.run(arguments = '--warn=missing-sconscript .', stderr = r""" +scons: warning: Ignoring missing SConscript 'no_such_file' +File ".+", line \d+, in .+ +""") + +test.run(arguments = '--warn=no-missing-sconscript .', stderr = "") + test.pass_test() |