mirror of
https://github.com/rancher/os.git
synced 2025-09-04 16:21:07 +00:00
Use a subdirectory of the state partition
This commit is contained in:
@@ -2,11 +2,12 @@ import subprocess
|
||||
|
||||
import os
|
||||
import pytest
|
||||
import rostest
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def chdir_to_project_root():
|
||||
os.chdir('../..')
|
||||
os.chdir(os.path.join(os.path.dirname(rostest.__file__), '../../..'))
|
||||
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')
|
||||
|
Reference in New Issue
Block a user