Skip to content

Commit 8bb27b3

Browse files
committed
strip debugging information from run output
1 parent d5a8905 commit 8bb27b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/smoke/run/run-script.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { assert, assertEquals } from "testing/asserts";
44
import { execProcess } from "../../../src/core/process.ts";
55
import { quartoDevCmd } from "../../utils.ts";
66
import { unitTest } from "../../test.ts";
7+
import { EOL } from "fs/eol";
8+
import { lines } from "../../../src/core/text.ts";
79

810
const workingDir = Deno.makeTempDirSync();
911

@@ -24,6 +26,11 @@ const ensureStreams = (name: string, script: string, stdout: string, stderr: str
2426
true
2527
);
2628
assert(result.success);
29+
// strip debugging output since this might run
30+
// in our CI with debugging enabled
31+
stdout = lines(result.stdout ?? "").filter((line: string) => !line.startsWith("[execProcess]")).join(EOL);
32+
stderr = lines(result.stderr ?? "").filter((line: string) => !line.startsWith("[execProcess]")).join(EOL);
33+
2734
assertEquals(result.stdout, stdout);
2835
assertEquals(result.stderr, stderr);
2936
},

0 commit comments

Comments
 (0)