We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 886a395 commit b8c27edCopy full SHA for b8c27ed
test/core/run-single
@@ -40,7 +40,6 @@ var path = require('path'),
40
common = require('./common');
41
42
var test = process.argv[2],
43
- done = false,
44
testProcess;
45
46
if (!test) {
@@ -58,16 +57,14 @@ proxy.on('listening', function () {
58
57
testProcess.stdout.pipe(process.stdout);
59
testProcess.stderr.pipe(process.stderr);
60
61
- testProcess.on('exit', function () {
62
- done = true;
63
- process.exit();
+ testProcess.on('exit', function (code) {
+ process.exit(code);
64
});
65
66
67
-process.on('exit', function () {
68
- if (!done) {
69
- textProcess.kill();
70
- }
+process.on('SIGTERM', function () {
+ testProcess.kill();
+ process.exit(1);
71
72
73
// vim:filetype=javascript
0 commit comments