misc: reduce unnecesarry output in cli/js tests (#4182)

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
Yusuke Sakurai 2020-03-03 23:51:07 +09:00 committed by GitHub
parent 3968308886
commit 4dc004f0a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 76 additions and 75 deletions

View file

@ -21,13 +21,15 @@ test(function runPermissions(): void {
testPerm({ run: true }, async function runSuccess(): Promise<void> {
const p = run({
args: ["python", "-c", "print('hello world')"]
args: ["python", "-c", "print('hello world')"],
stdout: "piped",
stderr: "null"
});
const status = await p.status();
console.log("status", status);
assertEquals(status.success, true);
assertEquals(status.code, 0);
assertEquals(status.signal, undefined);
p.stdout!.close();
p.close();
});