Commit 2616983c authored by Maciej Małecki's avatar Maciej Małecki Committed by Cédric de Saint Martin

[minor] When running tests output only basename

parent 739e4989
...@@ -38,13 +38,13 @@ function runTest(test, callback) { ...@@ -38,13 +38,13 @@ function runTest(test, callback) {
var killTimeout = setTimeout(function () { var killTimeout = setTimeout(function () {
child.kill(); child.kill();
console.log(test.yellow + ' timed out'.red); console.log(path.basename(test).yellow + ' timed out'.red);
}, testTimeout); }, testTimeout);
child.on('exit', function (exitCode) { child.on('exit', function (exitCode) {
clearTimeout(killTimeout); clearTimeout(killTimeout);
console.log(test.yellow + ' exited with ' + console.log(path.basename(test).yellow + ' exited with ' +
((exitCode) ? exitCode.toString().red : exitCode.toString().green)); ((exitCode) ? exitCode.toString().red : exitCode.toString().green));
results[test] = { exitCode: exitCode }; results[test] = { exitCode: exitCode };
callback(); callback();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment