Skip to content

Commit 811ea7d

Browse files
author
Rohan Jain
committed
Consitently use exit status 1 for failures
1 parent 44ec3bc commit 811ea7d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ exports.Server = function Server(bsClient, workers) {
123123
console.log("All tests done, failures: %d.", status);
124124

125125
if (status > 0) {
126-
status = 3;
126+
status = 1;
127127
}
128128

129129
process.exit(status);

lib/tunnel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var Tunnel = function Tunnel (key, port, callback, err) {
2323
if (stdout.indexOf('Error') >= 0) {
2424
console.log("..Failed");
2525
console.log(stdout);
26-
process.exit(-2);
26+
process.exit(1);
2727
}
2828
});
2929

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var alertBrowserStack = function alertBrowserStack (subject, content, params, fn
4141
if (typeof params === 'function') {
4242
} else {
4343
fn = function() {
44-
process.exit(-2);
44+
process.exit(1);
4545
};
4646
}
4747
}

0 commit comments

Comments
 (0)