Merge pull request #171 from robertbaldyga/set-repo-dir

Set repo_dir
This commit is contained in:
Daniel Madej 2019-10-30 16:14:45 +01:00 committed by GitHub
commit 04c346f062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,10 @@ def pytest_runtest_setup(item):
if 'test_wrapper' in sys.modules: if 'test_wrapper' in sys.modules:
test_wrapper.try_setup_serial_log(dut_config) test_wrapper.try_setup_serial_log(dut_config)
TestRun.plugins['opencas'] = {'already_updated': False} TestRun.plugins['opencas'] = {
'repo_dir': os.path.join(os.path.dirname(__file__), "../../.."),
'already_updated': False
}
except Exception as e: except Exception as e:
TestRun.LOGGER.exception(f"{str(e)}\n{traceback.format_exc()}") TestRun.LOGGER.exception(f"{str(e)}\n{traceback.format_exc()}")
TestRun.LOGGER.info(f"DUT info: {TestRun.dut}") TestRun.LOGGER.info(f"DUT info: {TestRun.dut}")