]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Don’t run trim_dir test suite unless cleanup tests are enabled
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 19 Dec 2021 15:38:36 +0000 (16:38 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 19 Dec 2021 15:38:36 +0000 (16:38 +0100)
Fixes #974.

test/suites/trim_dir.bash

index b23f233aed7118b271fd0893e072c86846d48bb3..ba8dd3cfc84cdf4e6e015ca3bcc8c6ef8c219d85 100644 (file)
@@ -1,3 +1,9 @@
+SUITE_trim_dir_PROBE() {
+    if [ -z "$ENABLE_CACHE_CLEANUP_TESTS" ]; then
+        echo "cleanup tests disabled"
+    fi
+}
+
 SUITE_trim_dir() {
     # -------------------------------------------------------------------------
     TEST "Trim secondary cache directory"