diff --git a/meta/recipes-connectivity/libpcap/files/run-ptest b/meta/recipes-connectivity/libpcap/files/run-ptest
index c4b869d541e..d6c76f52a81 100644
--- a/meta/recipes-connectivity/libpcap/files/run-ptest
+++ b/meta/recipes-connectivity/libpcap/files/run-ptest
@@ -8,18 +8,7 @@ ENUMERATETEST_BIN="./enumeratetest"
 CONFIG_H="../config.h"
 export FILTERTEST_BIN TRANSLATETEST_BIN ENUMERATETEST_BIN CONFIG_H
 
-./TESTrun --passed --skipped 2>&1 | awk '
-    /^Passed tests:/  { section = "PASS"; next }
-    /^Skipped tests:/ { section = "SKIP"; next }
-    /^Failed tests:/  { section = "FAIL"; next }
-    /^-+$/            { section = ""; next }
-    section != "" && /^    / {
-        c = index($0, ": ")
-        if (c >= 45) {
-            label = substr($0, 5, c - 5)
-            sub(/[[:space:]]+$/, "", label)
-            if (label != "")
-                print section ": " label
-        }
-    }
-'
+{ ./TESTrun --passed --skipped 2>&1 || echo "FAIL: libpcap"; } | sed \
+    -e '/^Passed tests:$/,/^$/ s/^    \([^ ][^ ]*\) *: .*/PASS: \1/' \
+    -e '/^Skipped tests:$/,/^$/ s/^    \([^ ][^ ]*\) *: .*/SKIP: \1/' \
+    -e '/^Failed tests:$/,/^INFO: / s/^    \([^ ][^ ]*\) *: .*/FAIL: \1/'
