Skip to content

Commit

Permalink
[test] Ignore setting WAT2WASM var if util isn't available (#237 from…
Browse files Browse the repository at this point in the history
… ejrgilbert/task/fix-wat2wasm)
  • Loading branch information
titzer authored Dec 4, 2024
2 parents 397e80b + 90cacd6 commit 65826fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ function wat2wasm_avail() {
command -v wat2wasm >/dev/null 2>&1
}

WAT2WASM=${WAT2WASM:="$(which wat2wasm) --enable-all"}
if wat2wasm_avail; then
WAT2WASM=${WAT2WASM:="$(which wat2wasm) --enable-all"}
fi
function wat2wasm() {
# if wat2wasm doesn't exist, skip this utility func
! wat2wasm_avail && return 0
Expand Down
Binary file modified test/monitors/whamm/monitors/correctness/multi-memory.wasm
Binary file not shown.

0 comments on commit 65826fd

Please sign in to comment.