mirror of https://github.com/nodejs/node.git
test: skip test-http-full-response on ab errors
If we get errors from ab or apr, skip the test and move on. Fix #3451pull/24503/head
parent
c49f3b5df6
commit
145612c2f5
|
@ -49,8 +49,8 @@ function runAb(opts, callback) {
|
||||||
var command = 'ab ' + opts + ' http://127.0.0.1:' + common.PORT + '/';
|
var command = 'ab ' + opts + ' http://127.0.0.1:' + common.PORT + '/';
|
||||||
exec(command, function(err, stdout, stderr) {
|
exec(command, function(err, stdout, stderr) {
|
||||||
if (err) {
|
if (err) {
|
||||||
if (stderr.indexOf('ab') >= 0) {
|
if (/ab|apr/mi.test(stderr)) {
|
||||||
console.log('ab not installed? skipping test.\n' + stderr);
|
console.log('problem spawning ab - skipping test.\n' + stderr);
|
||||||
process.reallyExit(0);
|
process.reallyExit(0);
|
||||||
}
|
}
|
||||||
process.exit();
|
process.exit();
|
||||||
|
|
Loading…
Reference in New Issue