diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2019-04-12 18:27:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 18:27:13 -0700 |
commit | 9495b338121140d585648d64fb99e8ef7f92f867 (patch) | |
tree | 57418b1f685a4a5a43ee291759f64e9a763b1245 /scripts/test | |
parent | 883d14de7157950063f74b81658d00df0d53be8d (diff) | |
download | binaryen-9495b338121140d585648d64fb99e8ef7f92f867.tar.gz binaryen-9495b338121140d585648d64fb99e8ef7f92f867.tar.bz2 binaryen-9495b338121140d585648d64fb99e8ef7f92f867.zip |
Move features from passOptions to Module (#2001)
This allows us to emit a (potentially modified) target features
section and conditionally emit other sections such as the DataCount
section based on the presence of features.
Diffstat (limited to 'scripts/test')
-rw-r--r-- | scripts/test/shared.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/test/shared.py b/scripts/test/shared.py index 7723f7cee..227b7b65e 100644 --- a/scripts/test/shared.py +++ b/scripts/test/shared.py @@ -312,10 +312,7 @@ class Py2CompletedProcess: output=self.stdout, stderr=self.stderr) -def run_process(cmd, check=True, input=None, universal_newlines=True, - capture_output=False, *args, **kw): - kw.setdefault('universal_newlines', True) - +def run_process(cmd, check=True, input=None, capture_output=False, *args, **kw): if hasattr(subprocess, "run"): ret = subprocess.run(cmd, check=check, input=input, *args, **kw) return ret @@ -419,9 +416,7 @@ def minify_check(wast, verify_final_result=True): print ' (minify check)' cmd = WASM_OPT + [wast, '--print-minified'] print ' ', ' '.join(cmd) - subprocess.check_call( - WASM_OPT + [wast, '--print-minified'], - stdout=open('a.wast', 'w'), stderr=subprocess.PIPE) + subprocess.check_call(cmd, stdout=open('a.wast', 'w'), stderr=subprocess.PIPE) assert os.path.exists('a.wast') subprocess.check_call( WASM_OPT + ['a.wast', '--print-minified'], |