mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1506928 - [mozharness] Handle KeyboardInterrupt in ScriptMixin. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D25749 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
ad11770681
commit
bb5a8b1846
@ -1456,6 +1456,14 @@ class ScriptMixin(PlatformMixin):
|
||||
break
|
||||
parser.add_lines(line)
|
||||
returncode = p.returncode
|
||||
except KeyboardInterrupt:
|
||||
level = error_level
|
||||
if halt_on_failure:
|
||||
level = FATAL
|
||||
self.log("Process interrupted by the user, killing process with pid %s" % p.pid,
|
||||
level=level)
|
||||
p.kill()
|
||||
return -1
|
||||
except OSError, e:
|
||||
level = error_level
|
||||
if halt_on_failure:
|
||||
|
Loading…
Reference in New Issue
Block a user