brintos

brintos / llvm-project-archived public Read only

0
0
Text · 336 B · 436eb70 Raw
17 lines · python
1#!/usr/bin/env python2 3import subprocess4import sys5 6args = sys.argv7 8expected_exit_code = args[1]9 10args = args[2:]11print("Running " + (" ".join(args)))12real_exit_code = subprocess.call(args)13 14if str(real_exit_code) != expected_exit_code:15    print("Got exit code %d but expected %s" % (real_exit_code, expected_exit_code))16    exit(1)17