Add clean-local target to clean pytest runner artifacts

The command finds all directories in bin/tests/system which contain an
underscore. Underscore indicates either a temporary directory (_tmp_), a
symlink to test artifacts (TESTNAME_MODULENAME), or a python-related
cache. Using underscore for a system test name is invalid and a hyphen
must be used instead.

(cherry picked from commit d66ff81543)
This commit is contained in:
Tom Krizek 2023-08-16 10:38:09 +02:00
parent 4b3d0c0f46
commit 303de3e089
No known key found for this signature in database
GPG key ID: 01623B9B652A20A7

View file

@ -253,3 +253,6 @@ AM_LOG_FLAGS = -r
$(TESTS): legacy.run.sh
test-local: check
clean-local::
-find $(builddir) -maxdepth 1 -type d -name "*_*" | xargs rm -rf