]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
test: Skip remote_helper test if storage test helper is unavailable
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 1 May 2026 15:05:41 +0000 (17:05 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 1 May 2026 15:05:41 +0000 (17:05 +0200)
The ccache-storage-test program is not available if the test suite is
run for a system-installed ccache, so handle that case gracefully.

test/suites/remote_helper.bash

index d6754b81b22d213b98b8c060df97db265f82ae89..51af284548df15c38af59c716f202f81cea8ed35 100644 (file)
@@ -19,8 +19,8 @@ start_test_helper() {
 }
 
 SUITE_remote_helper_PROBE() {
-    if ! python3 --version >/dev/null 2>&1; then
-        echo "python3 is not available"
+    if [[ ! -f "${STORAGE_TEST_HELPER}" ]]; then
+        echo "storage test helper not available"
     fi
 }