test: skip test-http-full-response on ab errors

If we get errors from ab or apr, skip the test and move on.

Fix #3451
pull/24503/head
Charlie McConnell 2012-06-15 18:58:27 -07:00 committed by isaacs
parent c49f3b5df6
commit 145612c2f5
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ function runAb(opts, callback) {
var command = 'ab ' + opts + ' http://127.0.0.1:' + common.PORT + '/';
exec(command, function(err, stdout, stderr) {
if (err) {
if (stderr.indexOf('ab') >= 0) {
console.log('ab not installed? skipping test.\n' + stderr);
if (/ab|apr/mi.test(stderr)) {
console.log('problem spawning ab - skipping test.\n' + stderr);
process.reallyExit(0);
}
process.exit();