Skip to content

Commit

Permalink
Try to inspect stdout/stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Dec 13, 2023
1 parent 7685621 commit f407f81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/custom-behavior.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ test("test invalid behavior exit", async () => {
let status = 0;

try {
const proc = child_process.execSync(
child_process.execSync(
"docker run -v $PWD/test-crawls:/crawls -v $PWD/tests/invalid-behaviors/:/custom-behaviors/ webrecorder/browsertrix-crawler crawl --url https://example.com/ --url https://example.org/ --url https://webrecorder.net/ --customBehaviors /custom-behaviors/invalid-export.js --scopeType page",
);
console.log(proc);
} catch (e) {
console.log(e);
console.log(e.stdout);
console.log(e.stderr);
status = e.status;
}

Expand Down

0 comments on commit f407f81

Please sign in to comment.