aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py
blob: 57a01f3852b06da635542fc402c4d93e1015070e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python3

import os, sys, subprocess


idx = 1
for arg in sys.argv[1:]:
  if not "=" in arg:
    break
  idx += 1
  (argname, argval) = arg.split("=")
  os.environ["SIMCTL_CHILD_" + argname] = argval

exitcode = subprocess.call(sys.argv[idx:])
if exitcode > 125:
  exitcode = 126
sys.exit(exitcode)