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 <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2024-07-01 15:06:53 -07:00 committed by Anas Nashif
parent ac37d6483a
commit 04c9637db7

View File

@ -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}')