diff options
author | Steven Knight <knight@baldmt.com> | 2001-09-16 04:22:19 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-09-16 04:22:19 (GMT) |
commit | e88681240924e70ec12abaf3664290a69db6dcfd (patch) | |
tree | 136311c7b231f8d467156a9ae4a9d53428f364fc /test/option-n.py | |
parent | fcd916513a1ad10e13479d4d604f239f7ea45c73 (diff) | |
download | SCons-e88681240924e70ec12abaf3664290a69db6dcfd.zip SCons-e88681240924e70ec12abaf3664290a69db6dcfd.tar.gz SCons-e88681240924e70ec12abaf3664290a69db6dcfd.tar.bz2 |
Add more information error reporting from tests.
Diffstat (limited to 'test/option-n.py')
-rw-r--r-- | test/option-n.py | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/test/option-n.py b/test/option-n.py index 0f8687a..122a38b 100644 --- a/test/option-n.py +++ b/test/option-n.py @@ -27,48 +27,30 @@ env.MyBuild(target = 'f2.out', source = 'f2.in') args = 'f1.out f2.out' expect = "python build.py f1.out\npython build.py f2.out\n" -test.run(arguments = args) - -test.fail_test(test.stdout() != expect) -test.fail_test(test.stderr() != "") +test.run(arguments = args, stdout = expect) 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 = '-n ' + args) - -test.fail_test(test.stdout() != expect) -test.fail_test(test.stderr() != "") +test.run(arguments = '-n ' + args, stdout = expect) test.fail_test(os.path.exists(test.workpath('f1.out'))) test.fail_test(os.path.exists(test.workpath('f2.out'))) -test.run(arguments = '--no-exec ' + args) - -test.fail_test(test.stdout() != expect) -test.fail_test(test.stderr() != "") +test.run(arguments = '--no-exec ' + args, stdout = expect) test.fail_test(os.path.exists(test.workpath('f1.out'))) test.fail_test(os.path.exists(test.workpath('f2.out'))) -test.run(arguments = '--just-print ' + args) - -test.fail_test(test.stdout() != expect) -test.fail_test(test.stderr() != "") +test.run(arguments = '--just-print ' + args, stdout = expect) test.fail_test(os.path.exists(test.workpath('f1.out'))) test.fail_test(os.path.exists(test.workpath('f2.out'))) -test.run(arguments = '--dry-run ' + args) - -test.fail_test(test.stdout() != expect) -test.fail_test(test.stderr() != "") +test.run(arguments = '--dry-run ' + args, stdout = expect) test.fail_test(os.path.exists(test.workpath('f1.out'))) test.fail_test(os.path.exists(test.workpath('f2.out'))) -test.run(arguments = '--recon ' + args) - -test.fail_test(test.stdout() != expect) -test.fail_test(test.stderr() != "") +test.run(arguments = '--recon ' + args, stdout = expect) test.fail_test(os.path.exists(test.workpath('f1.out'))) test.fail_test(os.path.exists(test.workpath('f2.out'))) |