def _do_shell(self, args, config):
capman = config.pluginmanager.getplugin('capturemanager')
if capman:
if hasattr(capman, 'suspend_global_capture'):
capman.suspend_global_capture(in_=True)
else:
capman.suspendcapture(in_=True)
shell = os.environ.get('SHELL', 'sh')
print("Spawning a Unix shell...")
with self._run_from_testdir(args):
os.execv(shell, [shell] + config.args[1:])
sys.exit(1)
评论列表
文章目录