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 + '/';
|
||||
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();
|
||||
|
|
Loading…
Reference in New Issue