mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[minor] When running tests output only basename
This commit is contained in:
parent
219b0ff8f8
commit
e109eba972
@ -38,13 +38,13 @@ function runTest(test, callback) {
|
||||
|
||||
var killTimeout = setTimeout(function () {
|
||||
child.kill();
|
||||
console.log(test.yellow + ' timed out'.red);
|
||||
console.log(path.basename(test).yellow + ' timed out'.red);
|
||||
}, testTimeout);
|
||||
|
||||
child.on('exit', function (exitCode) {
|
||||
clearTimeout(killTimeout);
|
||||
|
||||
console.log(test.yellow + ' exited with ' +
|
||||
console.log(path.basename(test).yellow + ' exited with ' +
|
||||
((exitCode) ? exitCode.toString().red : exitCode.toString().green));
|
||||
results[test] = { exitCode: exitCode };
|
||||
callback();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user