summaryrefslogtreecommitdiffstats
path: root/test/option-k.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-02-05 20:08:29 (GMT)
committerSteven Knight <knight@baldmt.com>2002-02-05 20:08:29 (GMT)
commitf6c20c8f66928d7d9845717cca12770dbfc86a59 (patch)
tree279913aaaa33e5ec28f3699a4a3c894336f56e87 /test/option-k.py
parentac9aa00b71169ab6d275ee6990248e1778bcf456 (diff)
downloadSCons-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/option-k.py')
-rw-r--r--test/option-k.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/option-k.py b/test/option-k.py
index 14a67b9..51fa6c6 100644
--- a/test/option-k.py
+++ b/test/option-k.py
@@ -58,16 +58,16 @@ test.write('aaa.in', "aaa.in\n")
test.write('bbb.in', "bbb.in\n")
test.run(arguments = 'aaa.out bbb.out',
- stderr =
- 'scons: *** [aaa.1] Error 1\n')
+ stderr = 'scons: *** [aaa.1] Error 1\n',
+ status = 2)
test.fail_test(os.path.exists(test.workpath('aaa.1')))
test.fail_test(os.path.exists(test.workpath('aaa.out')))
test.fail_test(os.path.exists(test.workpath('bbb.out')))
test.run(arguments = '-k aaa.out bbb.out',
- stderr =
- 'scons: *** [aaa.1] Error 1\n')
+ stderr = 'scons: *** [aaa.1] Error 1\n',
+ status = 2)
test.fail_test(os.path.exists(test.workpath('aaa.1')))
test.fail_test(os.path.exists(test.workpath('aaa.out')))
@@ -76,8 +76,8 @@ test.fail_test(test.read('bbb.out') != "succeed.py: bbb.out\n")
test.unlink("bbb.out")
test.run(arguments = '--keep-going aaa.out bbb.out',
- stderr =
- 'scons: *** [aaa.1] Error 1\n')
+ stderr = 'scons: *** [aaa.1] Error 1\n',
+ status = 2)
test.fail_test(os.path.exists(test.workpath('aaa.1')))
test.fail_test(os.path.exists(test.workpath('aaa.out')))