1
0
mirror of https://github.com/rancher/os.git synced 2025-07-07 03:48:38 +00:00
os/tests/integration/rostest/conftest.py
Ivan Mikushin ac3d7afca6 Integration tests: make sure qemu exits in fixture finalizer
Also, make sure qemu is alive in wait_for_ssh.
2015-12-17 14:59:52 +05:00

13 lines
361 B
Python

import subprocess
import os
import pytest
@pytest.fixture(scope="session", autouse=True)
def chdir_to_project_root():
os.chdir('../..')
print('\nChdir to project root dir: ' + subprocess.check_output('pwd'))
os.chmod('./tests/integration/assets/test.key', 0o600)
print('Also, `chmod 600 tests/integration/assets/test.key` to make ssh happy')