summaryrefslogtreecommitdiff
path: root/lib/subunit/python/subunit/tests/sample-script.py
blob: 0ee019ae4aef40411f8903d47969fb0acc4555af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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"
print "failure bing crosby ["
print "foo.c:53:ERROR invalid state"
print "]"
print "test an error"
print "error an error"
sys.exit(0)