Skip to content

Commit

Permalink
[minor] When running tests output only basename
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Dec 18, 2011
1 parent 219b0ff commit e109eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core/run
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e109eba

Please sign in to comment.