]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Treat bin/tests/system/_common as non-temp directory
authorTom Krizek <tkrizek@isc.org>
Mon, 18 Sep 2023 15:20:01 +0000 (17:20 +0200)
committerTom Krizek <tkrizek@isc.org>
Tue, 19 Sep 2023 11:29:29 +0000 (13:29 +0200)
The _common directory is a special case directory which contains shared
files for other system test directories. Make sure it's tracked in git
and not deleted during temporary directory cleanup.

bin/tests/system/.gitignore
bin/tests/system/Makefile.am

index e2daf1cef5e63f7f055f7c9c195b397911dbfadd..d26b4b0d3d37327a9772b13bb54618fdeff792b6 100644 (file)
@@ -26,3 +26,4 @@ named.run
 /*_*
 !/*_*.py
 !/*_*.sh
+!/_common
index 44282372de6b39f7fdda9333c62520c9f536cace..3607451e4ec06880d05ebd755f8d9d79909239e4 100644 (file)
@@ -240,4 +240,4 @@ $(TESTS): legacy.run.sh
 test-local: check
 
 clean-local::
-       -find $(builddir) -maxdepth 1 -type d -name "*_*" | xargs rm -rf
+       -find -L . -mindepth 1 -maxdepth 1 -type d -name "*_*" -and -not -name "_common" -exec rm -rf {} \;