summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/lit/lit.cfg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lit/lit.cfg.py b/test/lit/lit.cfg.py
index ac89a5991..79d9f641b 100644
--- a/test/lit/lit.cfg.py
+++ b/test/lit/lit.cfg.py
@@ -1,3 +1,4 @@
+import os
import lit.formats
config.name = "Binaryen lit tests"
@@ -8,6 +9,8 @@ config.suffixes = ['.wat', '.wast', '.test']
config.test_source_root = os.path.dirname(__file__)
config.test_exec_root = os.path.join(config.binaryen_build_root, 'test')
+config.environment = dict(os.environ)
+
# Replace all Binaryen tools with their absolute paths
bin_dir = os.path.join(config.binaryen_build_root, 'bin')
assert(os.path.isdir(bin_dir))