xref: /llvm-project/compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py (revision 2074b67ec26cc7657d0a354e0650c4ddeecd0e9f)
1#!/usr/bin/python
2
3import os, sys, subprocess
4
5
6idx = 1
7for arg in sys.argv[1:]:
8  if not "=" in arg:
9    break
10  idx += 1
11  (argname, argval) = arg.split("=")
12  os.environ["SIMCTL_CHILD_" + argname] = argval
13
14exitcode = subprocess.call(sys.argv[idx:])
15if exitcode > 125:
16  exitcode = 126
17sys.exit(exitcode)
18