]> git.baikalelectronics.ru Git - uboot.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)
commit35be369e1060271494dd1ad32637869b6d98bd05
treebbe6902436ddffd32909d02e90f0d86b8e44aa46
parent492ba8106fe914643c13e4a0078efba4bb85ca5e
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