test_exception fixes.

This commit is contained in:
Pavel Minaev 2019-09-12 19:05:28 -07:00 committed by Pavel Minaev
parent fef15c91c9
commit b6d23c4356
2 changed files with 93 additions and 116 deletions

View file

@ -92,6 +92,7 @@ class DebugStartBase(object):
steppingResumesAllThreads=None,
rules=None,
successExitCodes=None,
breakOnSystemExitZero=None,
pathMappings=None,
):
if logToFile:
@ -149,6 +150,9 @@ class DebugStartBase(object):
if successExitCodes:
args["successExitCodes"] = successExitCodes
if breakOnSystemExitZero:
args["debugOptions"] += ["BreakOnSystemExitZero"]
if pathMappings is not None:
args["pathMappings"] = pathMappings
@ -175,7 +179,6 @@ class Launch(DebugStartBase):
sudo=None,
waitOnNormalExit=None,
waitOnAbnormalExit=None,
breakOnSystemExitZero=None,
console="externalTerminal",
internalConsoleOptions="neverOpen",
**kwargs
@ -214,9 +217,6 @@ class Launch(DebugStartBase):
if waitOnAbnormalExit:
debug_options += ["WaitOnAbnormalExit"]
if breakOnSystemExitZero:
debug_options += ["BreakOnSystemExitZero"]
target_str = target
if isinstance(target, py.path.local):
target_str = target.strpath