]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add clean-local target to clean pytest runner artifacts
authorTom Krizek <tkrizek@isc.org>
Wed, 16 Aug 2023 08:38:09 +0000 (10:38 +0200)
committerTom Krizek <tkrizek@isc.org>
Mon, 21 Aug 2023 13:54:40 +0000 (15:54 +0200)
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.

bin/tests/system/Makefile.am

index 3fa1cd446cba0253d529e7d728807b20cf983693..ab716ac0c796356edd58ae369a79cfd24b168262 100644 (file)
@@ -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