From: Tom Krizek Date: Wed, 16 Aug 2023 08:38:09 +0000 (+0200) Subject: Add clean-local target to clean pytest runner artifacts X-Git-Tag: v9.19.17~44^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d66ff81543dee6e07d975d5136d01505d72ac69f;p=thirdparty%2Fbind9.git 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. --- diff --git a/bin/tests/system/Makefile.am b/bin/tests/system/Makefile.am index 3fa1cd446cb..ab716ac0c79 100644 --- a/bin/tests/system/Makefile.am +++ b/bin/tests/system/Makefile.am @@ -238,3 +238,6 @@ AM_LOG_FLAGS = -r $(TESTS): legacy.run.sh test-local: check + +clean-local:: + -find $(builddir) -maxdepth 1 -type d -name "*_*" | xargs rm -rf