From: Frederic Massart Date: Mon, 7 Apr 2014 04:55:51 +0000 (+0800) Subject: Kill the PHP Server or Selenium when killing Behat X-Git-Tag: v1.1~12 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=14d0b1c6e956366c44ee49cd0fb4dcc5659ac2dd;p=mdk.git Kill the PHP Server or Selenium when killing Behat --- diff --git a/lib/commands/behat.py b/lib/commands/behat.py index e8b083d..4b6f9c9 100644 --- a/lib/commands/behat.py +++ b/lib/commands/behat.py @@ -255,7 +255,10 @@ class BehatCommand(Command): sleep(3) # Running the tests - process(cmd, M.path, None, None) + try: + process(cmd, M.path, None, None) + except KeyboardInterrupt: + pass # Kill the remaining processes if phpServer: