2015-12-17 09:59:52 +00:00
|
|
|
import subprocess
|
|
|
|
|
2015-05-07 14:49:54 +00:00
|
|
|
import os
|
|
|
|
import pytest
|
2015-12-20 05:34:07 +00:00
|
|
|
import rostest
|
2015-05-07 14:49:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope="session", autouse=True)
|
2015-05-08 05:42:18 +00:00
|
|
|
def chdir_to_project_root():
|
2015-12-20 05:34:07 +00:00
|
|
|
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'))
|
2015-05-10 12:11:40 +00:00
|
|
|
os.chmod('./tests/integration/assets/test.key', 0o600)
|
|
|
|
print('Also, `chmod 600 tests/integration/assets/test.key` to make ssh happy')
|