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:
parent
e9edc05bed
commit
ccc95bc9b9
1 changed files with 3 additions and 6 deletions
|
@ -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();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue