tests: small fix in conftest

Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
This commit is contained in:
Michal Rakowski 2020-06-09 13:58:43 +02:00 committed by Michal Mielewczyk
parent 4f9f69d475
commit 393fd532cf

View File

@ -47,8 +47,8 @@ def pytest_runtest_setup(item):
try:
with open(item.config.getoption('--dut-config')) as cfg:
dut_config = yaml.safe_load(cfg)
except Exception:
raise Exception("You need to specify DUT config. See the example_dut_config.py file.")
except Exception as ex:
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['opt_plugins'] = {"test_wrapper": {}, "serial_log": {}, "power_control": {}}