diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-05-01 04:42:33 +0000 |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-05-01 04:42:33 +0000 |
commit | 876a278348882652a1cdabb0c8346a669b1d7aab (patch) | |
tree | 8d3da1d925e17b981246ea30afe977aa83c340e6 /test/GetBuildFailures | |
parent | 82c79a75a4ad61b33e9fddf85c39140dd376bd6d (diff) | |
download | scons-876a278348882652a1cdabb0c8346a669b1d7aab.tar.gz |
Add test routine to exactly match a set of lines no matter the order
Diffstat (limited to 'test/GetBuildFailures')
-rw-r--r-- | test/GetBuildFailures/option-k.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/GetBuildFailures/option-k.py b/test/GetBuildFailures/option-k.py index a9818a66..142fbf45 100644 --- a/test/GetBuildFailures/option-k.py +++ b/test/GetBuildFailures/option-k.py @@ -23,7 +23,7 @@ # """ -Verify that a failed build action with -j works as expected. +Verify that a failed build action with -k works as expected. """ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" @@ -90,10 +90,9 @@ scons: *** [f4] Error 1 scons: *** [f5] Error 1 """ -test.run(arguments = '-k .', - status = 2, - stdout = expect_stdout, - stderr = expect_stderr) +test.run(arguments = '-k .', status = 2, stdout=None, stderr=None) +test.exactly_contain_all_lines(test.stdout(), expect_stdout, title='stdout') +test.exactly_contain_all_lines(test.stderr(), expect_stderr, title='stderr') test.must_match(test.workpath('f3'), 'f3.in\n') test.must_not_exist(test.workpath('f4')) @@ -101,7 +100,6 @@ test.must_not_exist(test.workpath('f5')) test.must_match(test.workpath('f6'), 'f6.in\n') - test.pass_test() # Local Variables: |