]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: fix bundle detection by not looking for `units`
authorViktor Szakats <commit@vsz.me>
Wed, 19 Mar 2025 21:35:26 +0000 (22:35 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 19 Mar 2025 22:25:53 +0000 (23:25 +0100)
`units` may be not be built in certain cases when using autotools.

Fixes:
https://app.circleci.com/pipelines/github/curl/curl/12669/workflows/8516da2b-b351-40b2-bf13-7c4ab4bcdd55/jobs/127197

Bug: https://github.com/curl/curl/pull/16750#issuecomment-2738041943
Follow-up to a9b7cbf34f8db80e8c05ee3680cafdce67ca9430 #16750

Closes #16770

tests/runtests.pl

index 81baf2cbe06d382f6d3d0de1ccb411eb4cf45a4e..57e3152392ace9b753e362f903d4a33b6a447d6e 100755 (executable)
@@ -2514,9 +2514,9 @@ EOHELP
     shift @ARGV;
 }
 
-# Detect a test bundle build
+# Detect a test bundle build.
+# Do not look for 'units' because not all configurations build it.
 if(-e $LIBDIR . "libtests" . exe_ext('TOOL') &&
-   -e $UNITDIR . "units" . exe_ext('TOOL') &&
    -e $SRVDIR . "servers" . exe_ext('SRV')) {
     # use test bundles
     $bundle=1;