blob: d461dce50a11c983b229af03b282f48a8b325bb5 [file] [log] [blame]
import sys
if sys.argv[1:] and sys.argv[1] == 'bad':
sys.stdout.write('bad test fails...\n')
sys.exit(1)
else:
sys.stdout.write('test can \nspam\nstdout\nwith\nlots\nof\noutput,\n')
sys.stdout.write(' but should exit with 0.\n')
sys.stderr.write('hey, did we say stderr is also OK?\n')
sys.exit(0)