summaryrefslogtreecommitdiff
path: root/test/option-s.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-16 04:22:19 +0000
committerSteven Knight <knight@baldmt.com>2001-09-16 04:22:19 +0000
commite88681240924e70ec12abaf3664290a69db6dcfd (patch)
tree136311c7b231f8d467156a9ae4a9d53428f364fc /test/option-s.py
parentfcd916513a1ad10e13479d4d604f239f7ea45c73 (diff)
downloadscons-e88681240924e70ec12abaf3664290a69db6dcfd.tar.gz
Add more information error reporting from tests.
Diffstat (limited to 'test/option-s.py')
-rw-r--r--test/option-s.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/test/option-s.py b/test/option-s.py
index 4fdcafb2..8df64af0 100644
--- a/test/option-s.py
+++ b/test/option-s.py
@@ -24,30 +24,21 @@ env.MyBuild(target = 'f1.out', source = 'f1.in')
env.MyBuild(target = 'f2.out', source = 'f2.in')
""")
-test.run(arguments = '-s f1.out f2.out')
-
-test.fail_test(test.stdout() != "")
-test.fail_test(test.stderr() != "")
+test.run(arguments = '-s f1.out f2.out', stdout = "")
test.fail_test(not os.path.exists(test.workpath('f1.out')))
test.fail_test(not os.path.exists(test.workpath('f2.out')))
os.unlink(test.workpath('f1.out'))
os.unlink(test.workpath('f2.out'))
-test.run(arguments = '--silent f1.out f2.out')
-
-test.fail_test(test.stdout() != "")
-test.fail_test(test.stderr() != "")
+test.run(arguments = '--silent f1.out f2.out', stdout = "")
test.fail_test(not os.path.exists(test.workpath('f1.out')))
test.fail_test(not os.path.exists(test.workpath('f2.out')))
os.unlink(test.workpath('f1.out'))
os.unlink(test.workpath('f2.out'))
-test.run(arguments = '--quiet f1.out f2.out')
-
-test.fail_test(test.stdout() != "")
-test.fail_test(test.stderr() != "")
+test.run(arguments = '--quiet f1.out f2.out', stdout = "")
test.fail_test(not os.path.exists(test.workpath('f1.out')))
test.fail_test(not os.path.exists(test.workpath('f2.out')))