summaryrefslogtreecommitdiff
path: root/cli/tests/integration/run_tests.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-05-22 09:54:58 -0600
committerGitHub <noreply@github.com>2023-05-22 09:54:58 -0600
commit5c349039b8257fe6a5d8aa2fda91d54f3358bd7a (patch)
treef186190aea2641ae78ef888aead388a9a705a4e7 /cli/tests/integration/run_tests.rs
parent19f1823e4435f9eb53c23f8ee809d376c7b22700 (diff)
chore(cli): Don't assume deno is in path for spawn_kill_permissions (#19198)
We don't need to use the `deno` command here to test kill permissions and it's awkward to get right without passing `-A`. `cat` works, but for platforms other than windows. This test should have plenty of coverage on other platforms.
Diffstat (limited to 'cli/tests/integration/run_tests.rs')
-rw-r--r--cli/tests/integration/run_tests.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index bc717351a..eecf8537f 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -3434,8 +3434,9 @@ itest!(test_and_bench_are_noops_in_run {
output_str: Some(""),
});
+#[cfg(not(target_os = "windows"))]
itest!(spawn_kill_permissions {
- args: "run --quiet --unstable --allow-run=deno spawn_kill_permissions.ts",
+ args: "run --quiet --unstable --allow-run=cat spawn_kill_permissions.ts",
output_str: Some(""),
});