Arm flail attempt at windows support
This is a poor attempt at starting to test the new debugger support on windows systems. Kicks off #158debugger_on_windows
parent
0177268f13
commit
5c734daa0f
|
@ -5,9 +5,11 @@ All these tests can be understood (somewhat) by running the equivalent
|
||||||
`examples/debugging/` scripts manually.
|
`examples/debugging/` scripts manually.
|
||||||
"""
|
"""
|
||||||
from os import path
|
from os import path
|
||||||
|
import platform
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import pexpect
|
import pexpect
|
||||||
|
from pexpect import popen_spawn
|
||||||
|
|
||||||
from conftest import repodir
|
from conftest import repodir
|
||||||
|
|
||||||
|
@ -43,11 +45,19 @@ def spawn(
|
||||||
arb_addr,
|
arb_addr,
|
||||||
) -> 'pexpect.spawn':
|
) -> 'pexpect.spawn':
|
||||||
|
|
||||||
def _spawn(cmd):
|
if platform.system() == "Windows":
|
||||||
return testdir.spawn(
|
def _spawn(cmd):
|
||||||
cmd=mk_cmd(cmd),
|
return popen_spawn.PopenSpawn(
|
||||||
expect_timeout=3,
|
cmd=mk_cmd(cmd),
|
||||||
)
|
timeout=3,
|
||||||
|
)
|
||||||
|
else: # posix
|
||||||
|
|
||||||
|
def _spawn(cmd):
|
||||||
|
return testdir.spawn(
|
||||||
|
cmd=mk_cmd(cmd),
|
||||||
|
expect_timeout=3,
|
||||||
|
)
|
||||||
|
|
||||||
return _spawn
|
return _spawn
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue