diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index de907ac0c334cae2eb35e3413abf8bd616dd3457..67c1280faf8b68a91c2a40f12d1ac2e7cee2ec37 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,6 +34,8 @@ build-testenv:
   tags: [ cached-dind ]
   image: docker:20.10
   stage: setup
+  only:
+    - web
   script:
     - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
       # use here general latest or specific branch latest...
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 1ac6166e5eba53302055f9ae44989eb04cc1b9c3..1f2e958fc57a0bd9f9bf42a21af8076c82c58295 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -3,7 +3,7 @@ set(test_cases
     test_connection
     )
 
-find_library(cmocka-static cmocka)
+find_library(cmocka-static libcmocka)
 if (cmocka-static)
     message(STATUS "Found pre-installed cmocka: ${cmocka-static}")
 elseif (${CMAKE_VERSION} VERSION_LESS "3.14.0")