summaryrefslogtreecommitdiff
path: root/tests/specs/permission/path_not_permitted
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/permission/path_not_permitted')
-rw-r--r--tests/specs/permission/path_not_permitted/main.out4
-rw-r--r--tests/specs/permission/path_not_permitted/main.ts2
-rw-r--r--tests/specs/permission/path_not_permitted/sub.ts4
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/specs/permission/path_not_permitted/main.out b/tests/specs/permission/path_not_permitted/main.out
index 3817c2ca5..77f800158 100644
--- a/tests/specs/permission/path_not_permitted/main.out
+++ b/tests/specs/permission/path_not_permitted/main.out
@@ -1,10 +1,10 @@
Running...
-PermissionDenied: Requires run access to "[WILDLINE]deno[WILDLINE]", run again with the --allow-run flag
+PermissionDenied: Requires run access to "deno", run again with the --allow-run flag
[WILDCARD]
at file:///[WILDLINE]/sub.ts:15:5 {
name: "PermissionDenied"
}
-PermissionDenied: Requires run access to "[WILDLINE]deno[WILDLINE]", run again with the --allow-run flag
+PermissionDenied: Requires run access to "deno", run again with the --allow-run flag
[WILDCARD]
at file:///[WILDLINE]/sub.ts:23:22 {
name: "PermissionDenied"
diff --git a/tests/specs/permission/path_not_permitted/main.ts b/tests/specs/permission/path_not_permitted/main.ts
index 9e8d627f2..0cc141e7a 100644
--- a/tests/specs/permission/path_not_permitted/main.ts
+++ b/tests/specs/permission/path_not_permitted/main.ts
@@ -9,7 +9,7 @@ new Deno.Command(
"run",
"--allow-write",
"--allow-read",
- `--allow-run=${binaryName}`,
+ `--allow-run=deno`,
"sub.ts",
],
stderr: "inherit",
diff --git a/tests/specs/permission/path_not_permitted/sub.ts b/tests/specs/permission/path_not_permitted/sub.ts
index f2b6d6b37..ea527a938 100644
--- a/tests/specs/permission/path_not_permitted/sub.ts
+++ b/tests/specs/permission/path_not_permitted/sub.ts
@@ -6,7 +6,7 @@ Deno.copyFileSync(binaryName, "subdir/" + binaryName);
try {
const commandResult = new Deno.Command(
- binaryName,
+ "deno",
{
env: { "PATH": Deno.cwd() + pathSep + "subdir" },
stdout: "inherit",
@@ -22,7 +22,7 @@ try {
try {
const child = Deno.run(
{
- cmd: [binaryName],
+ cmd: ["deno"],
env: { "PATH": Deno.cwd() + pathSep + "subdir" },
stdout: "inherit",
stderr: "inherit",