aboutsummaryrefslogtreecommitdiff
path: root/test/sanitizer_common/ios_commands/iossim_env.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sanitizer_common/ios_commands/iossim_env.py')
-rwxr-xr-xtest/sanitizer_common/ios_commands/iossim_env.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/sanitizer_common/ios_commands/iossim_env.py b/test/sanitizer_common/ios_commands/iossim_env.py
new file mode 100755
index 000000000000..28f626900f0b
--- /dev/null
+++ b/test/sanitizer_common/ios_commands/iossim_env.py
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+
+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)