summaryrefslogtreecommitdiff
path: root/test/builderrors.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-02-05 20:08:29 +0000
committerSteven Knight <knight@baldmt.com>2002-02-05 20:08:29 +0000
commitf6c20c8f66928d7d9845717cca12770dbfc86a59 (patch)
tree279913aaaa33e5ec28f3699a4a3c894336f56e87 /test/builderrors.py
parentac9aa00b71169ab6d275ee6990248e1778bcf456 (diff)
downloadscons-f6c20c8f66928d7d9845717cca12770dbfc86a59.tar.gz
Make scons return a failure code when a Builder fails (Anthony Roach)
Diffstat (limited to 'test/builderrors.py')
-rw-r--r--test/builderrors.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/builderrors.py b/test/builderrors.py
index ff156108..8a574dbb 100644
--- a/test/builderrors.py
+++ b/test/builderrors.py
@@ -59,7 +59,7 @@ test.write(['one', 'f2.in'], "one/f2.in\n")
test.write(['one', 'f3.in'], "one/f3.in\n")
test.run(chdir = 'one', arguments = "f1.out f2.out f3.out",
- stderr = "scons: *** [f1.out] Error 1\n")
+ stderr = "scons: *** [f1.out] Error 1\n", status = 2)
test.fail_test(os.path.exists(test.workpath('f1.out')))
test.fail_test(os.path.exists(test.workpath('f2.out')))
@@ -79,7 +79,7 @@ test.write(['two', 'f2.in'], "two/f2.in\n")
test.write(['two', 'f3.in'], "two/f3.in\n")
test.run(chdir = 'two', arguments = "f1.out f2.out f3.out",
- stderr = "scons: *** [f2.out] Error 1\n")
+ stderr = "scons: *** [f2.out] Error 1\n", status = 2)
test.fail_test(test.read(['two', 'f1.out']) != "two/f1.in\n")
test.fail_test(os.path.exists(test.workpath('f2.out')))
@@ -99,7 +99,7 @@ test.write(['three', 'f2.in'], "three/f2.in\n")
test.write(['three', 'f3.in'], "three/f3.in\n")
test.run(chdir = 'three', arguments = "f1.out f2.out f3.out",
- stderr = "scons: *** [f3.out] Error 1\n")
+ stderr = "scons: *** [f3.out] Error 1\n", status = 2)
test.fail_test(test.read(['three', 'f1.out']) != "three/f1.in\n")
test.fail_test(test.read(['three', 'f2.out']) != "three/f2.in\n")