diff options
Diffstat (limited to 'test/option-s.py')
-rw-r--r-- | test/option-s.py | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/test/option-s.py b/test/option-s.py index 4fdcafb..8df64af 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'))) |