From 9e13c3dbcb148db3cf72b758ece77d3a7ece81f7 Mon Sep 17 00:00:00 2001 From: Tom Krizek Date: Mon, 18 Sep 2023 17:20:01 +0200 Subject: [PATCH] Treat bin/tests/system/_common as non-temp directory 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 | 1 + bin/tests/system/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/.gitignore b/bin/tests/system/.gitignore index e2daf1cef5..d26b4b0d3d 100644 --- a/bin/tests/system/.gitignore +++ b/bin/tests/system/.gitignore @@ -26,3 +26,4 @@ named.run /*_* !/*_*.py !/*_*.sh +!/_common diff --git a/bin/tests/system/Makefile.am b/bin/tests/system/Makefile.am index 44282372de..3607451e4e 100644 --- a/bin/tests/system/Makefile.am +++ b/bin/tests/system/Makefile.am @@ -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 {} \;