From 04c9637db7db326ad39bac0fd1a93c1956cab368 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Mon, 1 Jul 2024 15:06:53 -0700 Subject: [PATCH] tests: logging/dictionary: fix pytest when built with sysbuild With sysbuild, the test app is actually built under another layer of directory where the dictionary JSON file will reside. Instead of simply using dut.device_config.build_dir, use dut.devive_config.app_build_dir instead, which takes into account of that. Signed-off-by: Daniel Leung --- .../subsys/logging/dictionary/pytest/test_logging_dictionary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/subsys/logging/dictionary/pytest/test_logging_dictionary.py b/tests/subsys/logging/dictionary/pytest/test_logging_dictionary.py index 68548ce4767..a72b6e533f6 100644 --- a/tests/subsys/logging/dictionary/pytest/test_logging_dictionary.py +++ b/tests/subsys/logging/dictionary/pytest/test_logging_dictionary.py @@ -147,7 +147,7 @@ def test_logging_dictionary(dut: DeviceAdapter, is_fpu_build): ''' Main entrance to setup test result validation. ''' - build_dir = dut.device_config.build_dir + build_dir = dut.device_config.app_build_dir logger.info(f'FPU build? {is_fpu_build}')