summaryrefslogtreecommitdiffstats
path: root/test/option--warn.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-12-01 13:06:29 (GMT)
committerSteven Knight <knight@baldmt.com>2003-12-01 13:06:29 (GMT)
commit1449e5067298043a8cd9b26a9030f5909cfb00fb (patch)
tree6f7aaa5f6e05039884cb82deafa9a4f99b3682a7 /test/option--warn.py
parent04e36a29829d2fde6fe82af08bd1b5259ed7a7b9 (diff)
downloadSCons-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.py17
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()