| 1 |
#!/usr/bin/env python3 |
| 2 |
import sys |
| 3 |
|
| 4 |
if sys.platform == "win32": |
| 5 |
import msvcrt |
| 6 |
import os |
| 7 |
|
| 8 |
msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) |
| 9 |
if len(sys.argv) == 2: |
| 10 |
# tests.test_test_protocol.TestExecTestCase.test_sample_method_args |
| 11 |
# uses this code path to be sure that the arguments were passed to |
| 12 |
# sample-script.py |
| 13 |
print("test fail") |
| 14 |
print("error fail") |
| 15 |
sys.exit(0) |
| 16 |
print("test old mcdonald") |
| 17 |
print("success old mcdonald") |
| 18 |
print("test bing crosby") |
| 19 |
print("failure bing crosby [") |
| 20 |
print("foo.c:53:ERROR invalid state") |
| 21 |
print("]") |
| 22 |
print("test an error") |
| 23 |
print("error an error") |
| 24 |
sys.exit(0) |