1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 00:29:09 -05:00

refactor: rewrite permission_test to not depend on Python (#8291)

This commit is contained in:
Mo 2020-11-08 12:50:27 +02:00 committed by GitHub
parent e9edc05bed
commit ccc95bc9b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,13 +16,10 @@ const test: { [key: string]: (...args: any[]) => void | Promise<void> } = {
Deno.listen({ transport: "tcp", port: 4541 }); Deno.listen({ transport: "tcp", port: 4541 });
}, },
runRequired(): void { runRequired(): void {
Deno.run({ const p = Deno.run({
cmd: [ cmd: ["printf", "hello"],
"python",
"-c",
"import sys; sys.stdout.write('hello'); sys.stdout.flush()",
],
}); });
p.close();
}, },
}; };