diff options
author | Steven Knight <knight@baldmt.com> | 2002-02-05 20:08:29 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-02-05 20:08:29 (GMT) |
commit | f6c20c8f66928d7d9845717cca12770dbfc86a59 (patch) | |
tree | 279913aaaa33e5ec28f3699a4a3c894336f56e87 /test/build-errors.py | |
parent | ac9aa00b71169ab6d275ee6990248e1778bcf456 (diff) | |
download | SCons-f6c20c8f66928d7d9845717cca12770dbfc86a59.zip SCons-f6c20c8f66928d7d9845717cca12770dbfc86a59.tar.gz SCons-f6c20c8f66928d7d9845717cca12770dbfc86a59.tar.bz2 |
Make scons return a failure code when a Builder fails (Anthony Roach)
Diffstat (limited to 'test/build-errors.py')
-rw-r--r-- | test/build-errors.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/build-errors.py b/test/build-errors.py index 694743a..ea129fa 100644 --- a/test/build-errors.py +++ b/test/build-errors.py @@ -48,7 +48,8 @@ env.bld(target = 'f1', source = 'f1.in') test.run(arguments='-f SConstruct1 .', stdout = "%s f1.in f1\n" % no_such_file, - stderr = None) + stderr = None, + status = 2) bad_command = "Bad command or file name\n" @@ -84,7 +85,8 @@ env.bld(target = 'f2', source = 'f2.in') test.run(arguments='-f SConstruct2 .', stdout = "%s f2.in f2\n" % not_executable, - stderr = None) + stderr = None, + status = 2) test.description_set("Incorrect STDERR:\n%s\n" % test.stderr()) if os.name == 'nt': @@ -107,7 +109,8 @@ env.bld(target = 'f3', source = 'f3.in') test.run(arguments='-f SConstruct3 .', stdout = "%s f3.in f3\n" % test.workdir, - stderr = None) + stderr = None, + status = 2) test.description_set("Incorrect STDERR:\n%s\n" % test.stderr()) if os.name == 'nt': |