Skip to content

Commit

Permalink
Workaround denoland/deno#4568
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Jun 2, 2020
1 parent 851751c commit 9d6df2a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions benchmarks/benchmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ bench({
b.start();
const proc = Deno.run({
cmd: ["./target/release/deno_lint", ...files],
stdout: "piped",
stderr: "piped",
stdout: "null",
stderr: "null",
});
const { success } = await proc.status();
if (!success) {
await Deno.copy(proc.stdout!, Deno.stdout);
await Deno.copy(proc.stderr!, Deno.stderr);
// await Deno.copy(proc.stdout!, Deno.stdout);
// await Deno.copy(proc.stderr!, Deno.stderr);
throw Error("Failed to run deno_lint");
}
b.stop();
Expand All @@ -41,13 +41,13 @@ bench({
const proc = Deno.run({
cmd: ["npx", "eslint", ...files],
cwd: "./benchmarks",
stdout: "piped",
stderr: "piped",
stdout: "null",
stderr: "null",
});
const { success } = await proc.status();
if (!success) {
await Deno.copy(proc.stdout!, Deno.stdout);
await Deno.copy(proc.stderr!, Deno.stderr);
// await Deno.copy(proc.stdout!, Deno.stdout);
// await Deno.copy(proc.stderr!, Deno.stderr);
throw Error("Failed to run eslint");
}
b.stop();
Expand Down

0 comments on commit 9d6df2a

Please sign in to comment.