()
| 9 | |
| 10 | @pytest.fixture(scope="session") |
| 11 | def spawn(): |
| 12 | p = subprocess.Popen(["./bin/xstudio.bin","--session","pythontest","-e","-n","--log-file","xstudio.log"]) |
| 13 | time.sleep(10) |
| 14 | m = RemoteSessionManager(remote_session_path()) |
| 15 | s = m.find("pythontest") |
| 16 | XSTUDIO = Connection() |
| 17 | XSTUDIO.connect_remote( |
| 18 | s.host(), |
| 19 | s.port() |
| 20 | ) |
| 21 | yield XSTUDIO |
| 22 | p.send_signal(signal.SIGINT) |
| 23 | time.sleep(1) |
| 24 | p.terminate() |
| 25 | time.sleep(1) |
| 26 | p.kill() |
| 27 | p.wait() |
no test coverage detected