summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/test.ts8
-rw-r--r--http/file_server_test.ts2
-rw-r--r--http/racing_server_test.ts2
-rw-r--r--installer/mod.ts2
-rw-r--r--installer/test.ts2
5 files changed, 11 insertions, 5 deletions
diff --git a/examples/test.ts b/examples/test.ts
index 8158763be..542a191bf 100644
--- a/examples/test.ts
+++ b/examples/test.ts
@@ -15,7 +15,13 @@ test(function t2(): void {
/** A more complicated test that runs a subprocess. */
test(async function catSmoke(): Promise<void> {
const p = run({
- args: ["deno", "run", "--allow-read", "examples/cat.ts", "README.md"],
+ args: [
+ Deno.execPath,
+ "run",
+ "--allow-read",
+ "examples/cat.ts",
+ "README.md"
+ ],
stdout: "piped"
});
const s = await p.status();
diff --git a/http/file_server_test.ts b/http/file_server_test.ts
index 52d6ec688..bac82e825 100644
--- a/http/file_server_test.ts
+++ b/http/file_server_test.ts
@@ -11,7 +11,7 @@ let fileServer: Deno.Process;
async function startFileServer(): Promise<void> {
fileServer = run({
args: [
- "deno",
+ Deno.execPath,
"run",
"--allow-read",
"--allow-net",
diff --git a/http/racing_server_test.ts b/http/racing_server_test.ts
index dc16a49e1..a34f915d5 100644
--- a/http/racing_server_test.ts
+++ b/http/racing_server_test.ts
@@ -8,7 +8,7 @@ import { TextProtoReader } from "../textproto/mod.ts";
let server: Deno.Process;
async function startServer(): Promise<void> {
server = run({
- args: ["deno", "run", "-A", "http/racing_server.ts"],
+ args: [Deno.execPath, "run", "-A", "http/racing_server.ts"],
stdout: "piped"
});
// Once racing server is ready it will write to its stdout.
diff --git a/installer/mod.ts b/installer/mod.ts
index 927485342..c38f1dbd4 100644
--- a/installer/mod.ts
+++ b/installer/mod.ts
@@ -227,7 +227,7 @@ export async function install(
// ensure script that is being installed exists
const ps = run({
- args: ["deno", "fetch", "--reload", moduleUrl],
+ args: [Deno.execPath, "fetch", "--reload", moduleUrl],
stdout: "inherit",
stderr: "inherit"
});
diff --git a/installer/test.ts b/installer/test.ts
index 02a1aade1..2309be443 100644
--- a/installer/test.ts
+++ b/installer/test.ts
@@ -16,7 +16,7 @@ const isWindows = Deno.platform.os === "win";
async function startFileServer(): Promise<void> {
fileServer = run({
args: [
- "deno",
+ Deno.execPath,
"run",
"--allow-read",
"--allow-net",