aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/windows/13 test argument extra paths/test/test_run_exe.py
blob: 77c7ddc590f1f0619d3ed446cfff344f70922bee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import subprocess
import argparse
import sys

if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('prog')
    args = parser.parse_args()

    res = subprocess.run(args.prog)

    sys.exit(res.returncode - 42)