summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2020-02-07 14:28:38 -0800
committerGitHub <noreply@github.com>2020-02-07 14:28:38 -0800
commit2119f3fcc32c58d581d7c86b7612e3bc89da24e0 (patch)
treee3b40cba200f84b13578f6f0a6b704b53921dccd
parent2cc0aa2b21453e121f5f081189d4863a291d427d (diff)
downloadbinaryen-2119f3fcc32c58d581d7c86b7612e3bc89da24e0.tar.gz
binaryen-2119f3fcc32c58d581d7c86b7612e3bc89da24e0.tar.bz2
binaryen-2119f3fcc32c58d581d7c86b7612e3bc89da24e0.zip
Properly order the actual and exepcted outputs in fail() and fail_if_not_identical_to_file() (#2649)
-rw-r--r--scripts/test/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/test/shared.py b/scripts/test/shared.py
index 38224edd1..e13004dcd 100644
--- a/scripts/test/shared.py
+++ b/scripts/test/shared.py
@@ -370,7 +370,7 @@ def fail_if_not_contained(actual, expected):
def fail_if_not_identical_to_file(actual, expected_file):
binary = expected_file.endswith(".wasm") or type(actual) == bytes
with open(expected_file, 'rb' if binary else 'r') as f:
- fail_if_not_identical(f.read(), actual, fromfile=expected_file)
+ fail_if_not_identical(actual, f.read(), fromfile=expected_file)
def get_test_dir(name):