diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-07-19 14:08:34 +1000 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-07-19 14:08:34 +1000 |
| commit | 58aaf9df3849643bbf3c38aeb1965fe6d3e92ced (patch) | |
| tree | aeb9343f9e9e784f7e85202e2a3414dbffa75217 /python/subunit/tests/sample-script.py | |
| parent | ef8d30bd77ac8fd37ee1a440536dc969c11ff867 (diff) | |
| parent | 3549290ea1c272eaaae6feb0130db20f1c797442 (diff) | |
| download | subunit-git-58aaf9df3849643bbf3c38aeb1965fe6d3e92ced.tar.gz | |
Merge fix for bug bug 353510, allowing arguments to ExecTestCase.
Diffstat (limited to 'python/subunit/tests/sample-script.py')
| -rwxr-xr-x | python/subunit/tests/sample-script.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/subunit/tests/sample-script.py b/python/subunit/tests/sample-script.py index 223d2f5..0ee019a 100755 --- a/python/subunit/tests/sample-script.py +++ b/python/subunit/tests/sample-script.py @@ -1,5 +1,12 @@ #!/usr/bin/env python import sys +if len(sys.argv) == 2: + # subunit.tests.test_test_protocol.TestExecTestCase.test_sample_method_args + # uses this code path to be sure that the arguments were passed to + # sample-script.py + print "test fail" + print "error fail" + sys.exit(0) print "test old mcdonald" print "success old mcdonald" print "test bing crosby" |
