1
0
mirror of https://github.com/rancher/os.git synced 2025-09-03 15:54:24 +00:00

revive integration tests

This commit is contained in:
Ivan Mikushin
2015-09-01 19:11:02 +05:00
parent e9371a67cb
commit e94f8d8a1f
11 changed files with 32 additions and 59 deletions

View File

@@ -1,10 +1,11 @@
import os
import pytest
import subprocess
@pytest.fixture(scope="session", autouse=True)
def chdir_to_project_root():
os.chdir('../..')
print('\nChdir to project root dir')
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')