Browse Source

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
v0.9.1-release
Charlie McConnell 13 years ago
committed by isaacs
parent
commit
145612c2f5
  1. 4
      test/simple/test-http-full-response.js

4
test/simple/test-http-full-response.js

@ -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…
Cancel
Save