Skip to content

Commit 0ab7775

Browse files
paulirishbrendankenny
authored andcommitted
tests: fix run-smoke handoff of testResults (#4959)
1 parent e5719bd commit 0ab7775

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lighthouse-cli/test/smokehouse/run-smoke.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ function displaySmokehouseOutput(result) {
8484
}
8585
console.timeEnd(`smoketest-${result.id}`);
8686
console.log(`${purpleify(result.id)} smoketest complete. \n`);
87+
return result;
8788
}
8889

8990
/**
@@ -183,4 +184,7 @@ async function cli() {
183184
process.exit(0);
184185
}
185186

186-
cli();
187+
cli().catch(e => {
188+
console.error(e);
189+
process.exit(1);
190+
});

0 commit comments

Comments
 (0)