Fix chrome-qunit-test.js wasn't exiting with the right error code.
This commit is contained in:
parent
0f011e1c1c
commit
77fbb2306d
|
@ -68,13 +68,13 @@ const CDP = require('chrome-remote-interface');
|
|||
|
||||
Runtime.evaluate({
|
||||
expression: `(${check_script})()`
|
||||
}).then((numFails) => {
|
||||
}).then(numFails => {
|
||||
if (numFails.result.type !== 'undefined') {
|
||||
clearInterval(interval);
|
||||
protocol.close();
|
||||
chrome.kill();
|
||||
|
||||
if (numFails.value > 0) {
|
||||
if (numFails.result.value > 0) {
|
||||
process.exit(1);
|
||||
} else {
|
||||
process.exit();
|
||||
|
|
Loading…
Reference in New Issue