You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When finishing the test framework, a permission denied error is raised
Steps to Reproduce
clone this repo
wasm-pack test --firefox --headless
error shows at the end of tests
git clone [email protected]:rustwasm/wasm-bindgen.git
Cloning into 'wasm-bindgen'...
remote: Enumerating objects: 58841, done.
remote: Counting objects: 100% (3151/3151), done.
remote: Compressing objects: 100% (2288/2288), done.
remote: Total 58841 (delta 2858), reused 863 (delta 863), pack-reused 55690 (from 4)
Receiving objects: 100% (58841/58841), 27.98 MiB | 5.89 MiB/s, done.
Resolving deltas: 100% (42947/42947), done.
user@laptop:~/git$ cd wasm-bindgen/
127 user@laptop:~/git/wasm-bindgen$ wasm-pack test --firefox --headless
[INFO]: 🎯 Checking for the Wasm target...
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.16
Compiling wasm-bindgen-shared v0.2.100 (/home/user/git/wasm-bindgen/crates/shared)
Compiling bumpalo v3.17.0
Compiling log v0.4.25
Compiling rustversion v1.0.19
Compiling wasm-bindgen v0.2.100 (/home/user/git/wasm-bindgen)
Compiling once_cell v1.20.2
Compiling cfg-if v1.0.0
Compiling paste v1.0.15
Compiling quote v1.0.38
Compiling syn v2.0.98
Compiling wasm-bindgen-backend v0.2.100 (/home/user/git/wasm-bindgen/crates/backend)
Compiling wasm-bindgen-macro-support v0.2.100 (/home/user/git/wasm-bindgen/crates/macro-support)
Compiling wasm-bindgen-test-macro v0.3.50 (/home/user/git/wasm-bindgen/crates/test-macro)
Compiling serde_derive v1.0.217
Compiling wasm-bindgen-macro v0.2.100 (/home/user/git/wasm-bindgen/crates/macro)
Compiling js-sys v0.3.77 (/home/user/git/wasm-bindgen/crates/js-sys)
Compiling wasm-bindgen-test-crate-a v0.0.0 (/home/user/git/wasm-bindgen/tests/crates/a)
Compiling wasm-bindgen-test-crate-b v0.0.0 (/home/user/git/wasm-bindgen/tests/crates/b)
Compiling wasm-bindgen-futures v0.4.50 (/home/user/git/wasm-bindgen/crates/futures)
Compiling wasm-bindgen-test v0.3.50 (/home/user/git/wasm-bindgen/crates/test)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 16s
[INFO]: ⬇️ Installing wasm-bindgen...
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s
Running tests/headless/main.rs (target/wasm32-unknown-unknown/debug/deps/headless-9bc415b36c5915b9.wasm)
Running headless tests in Firefox on `http://127.0.0.1:45113/`
Try find `webdriver.json` for configure browser's capabilities:
Not found
running 10 tests
test externref_heap_live_count::test_externref_heap_live_count ... ok
test modules::test_get_five ... ok
test strings::string_roundtrip ... ok
test snippets::duplicate_inline_not_unified ... ok
test snippets::test_get_three ... ok
test snippets::stateful_deduplicated ... ok
test snippets::test_get_two ... ok
test closures_work ... ok
test can_log_html_strings ... ok
test works ... ok
test result: ok. 10 passed; 0 failed; 0 ignored; 0 filtered out; finished in 0.02s
thread 'main' panicked at crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs:698:27:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: test failed, to rerun pass `--test headless`
Error: Running Wasm tests with wasm-bindgen-test failed
Caused by: Running Wasm tests with wasm-bindgen-test failed
Caused by: failed to execute `cargo test`: exited with exit status: 101
full command: cd "/home/user/git/wasm-bindgen" && CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER="/home/user/.cache/.wasm-pack/wasm-bindgen-c59d5019a2b42393/wasm-bindgen-test-runner" GECKODRIVER="/snap/bin/geckodriver" WASM_BINDGEN_TEST_ONLY_WEB="1" "cargo" "test" "--target" "wasm32-unknown-unknown"
1 user@laptop:~/git/wasm-bindgen$
Expected Behavior
graceful exit
Actual Behavior
thread 'main' panicked at crates/cli/src/bin/wasm-bindgen-test-runner/headless.rs:698:27:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: test failed, to rerun pass `--test headless`
Error: Running Wasm tests with wasm-bindgen-test failed
Caused by: Running Wasm tests with wasm-bindgen-test failed
Caused by: failed to execute `cargo test`: exited with exit status: 101
full command: cd "/home/user/git/wasm-bindgen" && CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER="/home/user/.cache/.wasm-pack/wasm-bindgen-c59d5019a2b42393/wasm-bindgen-test-runner" GECKODRIVER="/snap/bin/geckodriver" WASM_BINDGEN_TEST_ONLY_WEB="1" "cargo" "test" "--target" "wasm32-unknown-unknown"
1 user@laptop:~/git/wasm-bindgen$
Describe the Bug
When finishing the test framework, a permission denied error is raised
Steps to Reproduce
wasm-pack test --firefox --headless
Expected Behavior
graceful exit
Actual Behavior
Additional Context
Running on Xubuntu 24
The text was updated successfully, but these errors were encountered: