]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - build-scripts/test-recursor
Merge pull request #9053 from rgacogne/devpoll-no-naked-pointer
[thirdparty/pdns.git] / build-scripts / test-recursor
index 6c3164576ee9e2c673af83214578cd764d2406f9..9f7b35a672a15f25f18f7e9586bd8f7716fd7ea4 100755 (executable)
@@ -46,7 +46,7 @@ sleep 3
 svstat configs/*
 ## prints the logs of supervised processes reported as running for less than 3 secs
 for config in configs/* ; do
-    secs=$(svstat ${config} | awk 'match($0, /([0-9]+) seconds/, r) { print r[1] }')
+    secs=$(svstat ${config} | perl -pe 's!.* (\d+) seconds!\1!')
     if [ -n "${secs}" ] && [ ${secs} -lt 3 ] ; then
         echo "-----------------"
         echo "Logs of ${config}"