From 393fd532cfdcb4f0790b74bba498e4ab78377bb3 Mon Sep 17 00:00:00 2001 From: Michal Rakowski Date: Tue, 9 Jun 2020 13:58:43 +0200 Subject: [PATCH] tests: small fix in conftest Signed-off-by: Michal Rakowski --- test/functional/tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/tests/conftest.py b/test/functional/tests/conftest.py index a393f50..b596c31 100644 --- a/test/functional/tests/conftest.py +++ b/test/functional/tests/conftest.py @@ -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": {}}