tests: small fix in conftest
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
parent
4f9f69d475
commit
393fd532cf
@ -47,8 +47,8 @@ def pytest_runtest_setup(item):
|
|||||||
try:
|
try:
|
||||||
with open(item.config.getoption('--dut-config')) as cfg:
|
with open(item.config.getoption('--dut-config')) as cfg:
|
||||||
dut_config = yaml.safe_load(cfg)
|
dut_config = yaml.safe_load(cfg)
|
||||||
except Exception:
|
except Exception as ex:
|
||||||
raise Exception("You need to specify DUT config. See the example_dut_config.py file.")
|
raise Exception(f"{ex}\nYou need to specify DUT config. See the example_dut_config.py file")
|
||||||
|
|
||||||
dut_config['plugins_dir'] = os.path.join(os.path.dirname(__file__), "../lib")
|
dut_config['plugins_dir'] = os.path.join(os.path.dirname(__file__), "../lib")
|
||||||
dut_config['opt_plugins'] = {"test_wrapper": {}, "serial_log": {}, "power_control": {}}
|
dut_config['opt_plugins'] = {"test_wrapper": {}, "serial_log": {}, "power_control": {}}
|
||||||
|
Loading…
Reference in New Issue
Block a user