We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3ce28 commit 2463d5fCopy full SHA for 2463d5f
spec/lib/runner.js
@@ -18,6 +18,13 @@ var matchesSpecs = function(output, specs) {
18
19
// kill the process family described by process, then send done the error
20
var killProcessFamily = function(child, error, done) {
21
+ if (process.platform === 'win32') {
22
+ // We do not use /PID <pid>, because it will fail if process was already terminated
23
+ exec('taskkill /F /T /FI "PID eq ' + child.pid + '"', function(killErr) {
24
+ done(error || killErr);
25
+ });
26
+ return;
27
+ }
28
// we need to grab a table of process ids and parent ids to form a tree out of
29
exec('ps -opid -oppid', function(err, rawData) {
30
// parse the list of process ids and parent ids
0 commit comments