]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: Skip cleanup test if not built out of tree
authorTobias Deiminger <tdmg@linutronix.de>
Mon, 8 Jan 2024 21:11:00 +0000 (22:11 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 19 Jan 2024 01:23:37 +0000 (20:23 -0500)
commit2d30b293c8e105279fdab0a83029483dbd49b42e
tree8e0d97ba8a405a6c97bc61764fcfe7d81b14b81f
parent3c3270b5696aa4c4bbd6e837730e5e14b801a1b6
test: Skip cleanup test if not built out of tree

With commit 42c0e5bb054d ("test: Find leftovers after clean/mrproper")
we assume that we are performing out of tree builds. test_clean and
test_mrproper fail if the assumption isn't met.

However there are valid scenarios where tests run with in source builds
(i.e., test.py --build-dir=.).

Automatically skip cleanup tests in such scenarios to prevent false
positives.

Signed-off-by: Tobias Deiminger <tdmg@linutronix.de>
Reviewed-by: Harald Seiler <u-boot@rahix.de>
test/py/tests/test_cleanup_build.py