forked from goodboy/tractor
1
0
Fork 0

Compare commits

...

1 Commits

Author SHA1 Message Date
Tyler Goodlet 5c734daa0f Arm flail attempt at windows support
This is a poor attempt at starting to test the new debugger support on
windows systems.

Kicks off #158
2020-10-13 21:21:37 -04:00
1 changed files with 15 additions and 5 deletions

View File

@ -5,9 +5,11 @@ All these tests can be understood (somewhat) by running the equivalent
`examples/debugging/` scripts manually.
"""
from os import path
import platform
import pytest
import pexpect
from pexpect import popen_spawn
from conftest import repodir
@ -43,6 +45,14 @@ def spawn(
arb_addr,
) -> 'pexpect.spawn':
if platform.system() == "Windows":
def _spawn(cmd):
return popen_spawn.PopenSpawn(
cmd=mk_cmd(cmd),
timeout=3,
)
else: # posix
def _spawn(cmd):
return testdir.spawn(
cmd=mk_cmd(cmd),