summaryrefslogtreecommitdiff
path: root/scripts/test/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test/shared.py')
-rw-r--r--scripts/test/shared.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/test/shared.py b/scripts/test/shared.py
index ad2f44c14..921da1f7f 100644
--- a/scripts/test/shared.py
+++ b/scripts/test/shared.py
@@ -124,6 +124,11 @@ if not options.binaryen_root:
options.binaryen_test = os.path.join(options.binaryen_root, 'test')
+test_out = os.path.join(options.binaryen_root, 'out', 'test')
+if not os.path.exists(test_out):
+ os.makedirs(test_out)
+os.chdir(test_out)
+
# Finds the given executable 'program' in PATH.
# Operates like the Unix tool 'which'.