From 571f0307dc7ff3d132fba605d70b2e50f6b56315 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Wed, 20 Dec 2017 17:50:41 +0100 Subject: [PATCH] Also kill firefox before running tests --- runtests.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runtests.js b/runtests.js index b987c07a0..fba726255 100644 --- a/runtests.js +++ b/runtests.js @@ -1,5 +1,4 @@ // jshint esversion: 6, browser: false, node: true - // This file is for automated testing, it should probably not be invoked for any other purpose. // It will: // 1. npm install @@ -60,6 +59,11 @@ run('npm', ['install'], () => { 'ps -ef | grep -v grep | grep \'/usr/bin/safaridriver\'' + ' | awk \'{print $2}\' | while read x; do kill $x; done' ], waitFor()); + + run('bash', ['-c', + 'ps -ef | grep -v grep | grep \'/Applications/Firefox.app/Contents/MacOS/firefox-bin\'' + + ' | awk \'{print $2}\' | while read x; do kill $x; done' + ], waitFor()); } }).nThen((waitFor) => { run('bower', ['install'], waitFor());