Skip to content

Commit e109eba

Browse files
committed
[minor] When running tests output only basename
1 parent 219b0ff commit e109eba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/core/run

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ function runTest(test, callback) {
3838

3939
var killTimeout = setTimeout(function () {
4040
child.kill();
41-
console.log(test.yellow + ' timed out'.red);
41+
console.log(path.basename(test).yellow + ' timed out'.red);
4242
}, testTimeout);
4343

4444
child.on('exit', function (exitCode) {
4545
clearTimeout(killTimeout);
4646

47-
console.log(test.yellow + ' exited with ' +
47+
console.log(path.basename(test).yellow + ' exited with ' +
4848
((exitCode) ? exitCode.toString().red : exitCode.toString().green));
4949
results[test] = { exitCode: exitCode };
5050
callback();

0 commit comments

Comments
 (0)