1
0
mirror of https://github.com/rancher/os.git synced 2025-07-07 11:58:38 +00:00
os/tests/integration/rostest/conftest.py

14 lines
428 B
Python
Raw Normal View History

import subprocess
import os
import pytest
import rostest
@pytest.fixture(scope="session", autouse=True)
2015-05-08 05:42:18 +00:00
def chdir_to_project_root():
os.chdir(os.path.join(os.path.dirname(rostest.__file__), '../../..'))
2015-09-01 14:11:02 +00:00
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')