]> git.dujemihanovic.xyz Git - u-boot.git/commit
patman: locate test data files via __file__ and pathlib
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>
Mon, 19 Dec 2022 22:32:39 +0000 (17:32 -0500)
committerSimon Glass <sjg@chromium.org>
Fri, 6 Jan 2023 02:21:57 +0000 (19:21 -0700)
commit1c77598402890ef148c5e114bb5a3a475305ced8
treebbe6902436ddffd32909d02e90f0d86b8e44aa46
parentf9e20e3bff50722d76720a5cd2ce47252bfe553a
patman: locate test data files via __file__ and pathlib

Previously it would rely on the executing script location, which could
break for example when running the tests via 'pytest'.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com>
tools/patman/func_test.py