Skip to contentSkip to conversation

poco: Add pass/fail ststus into logs

PATCH New Khem Raj 1 participant 1 message Sep 16, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 poco: Add pass/fail ststus into logs

Ptests do not report status otherwise on build host

---
 meta-oe/recipes-support/poco/poco/run-ptest | 11 +++++++++++
 1 file changed, 11 insertions(+)
meta-oe/recipes-support/poco/poco/run-ptest +11 -0
index 521cc08a75..db8cf8511f 100644
@@ -1,8 +1,19 @@
 #!/bin/sh
+i=0
 while read runner; do
   oldpath=`pwd` >/dev/null
   cd bin
   echo Testing $runner
   ./$runner -ignore $oldpath/cppignore.lnx -all
+  export res$((i++))=$?
   cd $oldpath >/dev/null
 done < testrunners
+i=0
+while read runner; do
+  eval assign=\$res$((i++))
+  if [ $assign -ne 0 ]; then
+    echo "FAIL: $runner"
+  else
+    echo "PASS: $runner"
+  fi
+done < testrunners
Signature · 1 line
2.42.0