Skip to content

Commit 341a85e

Browse files
Allow file system access for tests
1 parent 4044fde commit 341a85e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eng/testing/FindWasmHostExecutable.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if exist "%__WasmBinaryPathWithoutExtension%.js" (
2727

2828
if "%__WasmBinaryExtension%" == ".wasm" (
2929
:: Assume wasmtime is in PATH.
30-
set WASM_HOST_EXECUTABLE=wasmtime run -S http
30+
set WASM_HOST_EXECUTABLE=wasmtime run -S http --dir=.
3131
) else (
3232
if "%NODEJS_EXECUTABLE%" == "" (
3333
:: When running tests locally, assume NodeJS is in PATH.

eng/testing/FindWasmHostExecutable.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ elif [ -e "${dirname}/main.mjs" ]; then
2121
WASM_HOST_EXECUTABLE=$node
2222
WASM_BINARY_TO_EXECUTE="${dirname}/main.mjs"
2323
elif [ -e "${dirname}/${exename}.wasm" ]; then
24-
WASM_HOST_EXECUTABLE="wasmtime run -S http"
24+
WASM_HOST_EXECUTABLE="wasmtime run -S http --dir=."
2525
WASM_BINARY_TO_EXECUTE="${dirname}/${exename}.wasm"
2626
fi

0 commit comments

Comments
 (0)