summaryrefslogtreecommitdiff
path: root/scripts/test/lld.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-07-31 17:41:06 -0700
committerGitHub <noreply@github.com>2019-07-31 17:41:06 -0700
commitcbcca4cf42690514c04fce958675dcc05c1e86e3 (patch)
treed556bc2352f671eb54d6ec46c37d6a2f7392ac3c /scripts/test/lld.py
parent692f4666fd116fb7827b53348978f29bba253d47 (diff)
downloadbinaryen-cbcca4cf42690514c04fce958675dcc05c1e86e3.tar.gz
binaryen-cbcca4cf42690514c04fce958675dcc05c1e86e3.tar.bz2
binaryen-cbcca4cf42690514c04fce958675dcc05c1e86e3.zip
Python3-ify check.py and auto_update_tests.py (#2270)
I fixed flatten.bin.txt which seems to have just had some corrupted data, and I removed some fancy unicode from the spec comments tests, which I'm not sure it's important enough to figure out how to fix. Fixes #1691
Diffstat (limited to 'scripts/test/lld.py')
-rwxr-xr-xscripts/test/lld.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/test/lld.py b/scripts/test/lld.py
index c573f6480..fc68a4620 100755
--- a/scripts/test/lld.py
+++ b/scripts/test/lld.py
@@ -14,8 +14,8 @@
# limitations under the License.
import os
-from support import run_command
-from shared import (
+from .support import run_command
+from .shared import (
fail_with_error, files_with_pattern, options,
WASM_EMSCRIPTEN_FINALIZE, fail_if_not_identical_to_file
)
@@ -29,10 +29,10 @@ def args_for_finalize(filename):
def test_wasm_emscripten_finalize():
- print '\n[ checking wasm-emscripten-finalize testcases... ]\n'
+ print('\n[ checking wasm-emscripten-finalize testcases... ]\n')
for wast_path in files_with_pattern(options.binaryen_test, 'lld', '*.wast'):
- print '..', wast_path
+ print('..', wast_path)
is_passive = '.passive.' in wast_path
mem_file = wast_path + '.mem'
extension_arg_map = {
@@ -52,7 +52,7 @@ def test_wasm_emscripten_finalize():
actual = run_command(cmd)
if not os.path.exists(expected_file):
- print actual
+ print(actual)
fail_with_error('output ' + expected_file + ' does not exist')
fail_if_not_identical_to_file(actual, expected_file)
if ext == '.mem.out':
@@ -63,10 +63,10 @@ def test_wasm_emscripten_finalize():
def update_lld_tests():
- print '\n[ updatring wasm-emscripten-finalize testcases... ]\n'
+ print('\n[ updatring wasm-emscripten-finalize testcases... ]\n')
for wast_path in files_with_pattern(options.binaryen_test, 'lld', '*.wast'):
- print '..', wast_path
+ print('..', wast_path)
is_passive = '.passive.' in wast_path
mem_file = wast_path + '.mem'
extension_arg_map = {