Skip to content

Commit

Permalink
add task to kill iexplore.exe before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Nov 15, 2013
1 parent 38e0a5c commit 8cbbb7c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tasks/kill-ie.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = function(grunt) {
/**
* Kill all leftover iexplore.exe processes.
*/
grunt.registerTask('kill-ie', 'Kill all leftover iexplore.exe processes', function() {
var os = require('os').type();
if (os === 'Windows_NT') {
var exec = require('child_process').exec;
exec(process.env.comspec + ' /c taskkill.exe /F /IM iexplore.exe /T');
}
});
};

0 comments on commit 8cbbb7c

Please sign in to comment.