From ccc95bc9b926dc2340302d9afc0ab813e1dc887d Mon Sep 17 00:00:00 2001 From: Mo Date: Sun, 8 Nov 2020 12:50:27 +0200 Subject: refactor: rewrite permission_test to not depend on Python (#8291) --- cli/tests/permission_test.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/permission_test.ts b/cli/tests/permission_test.ts index f42983630..420dc05ca 100644 --- a/cli/tests/permission_test.ts +++ b/cli/tests/permission_test.ts @@ -16,13 +16,10 @@ const test: { [key: string]: (...args: any[]) => void | Promise } = { Deno.listen({ transport: "tcp", port: 4541 }); }, runRequired(): void { - Deno.run({ - cmd: [ - "python", - "-c", - "import sys; sys.stdout.write('hello'); sys.stdout.flush()", - ], + const p = Deno.run({ + cmd: ["printf", "hello"], }); + p.close(); }, }; -- cgit v1.2.3