Ptests do not report status otherwise on build host

Signed-off-by: Khem Raj <[email protected]>
---
 meta-oe/recipes-support/poco/poco/run-ptest | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/meta-oe/recipes-support/poco/poco/run-ptest 
b/meta-oe/recipes-support/poco/poco/run-ptest
index 521cc08a75..db8cf8511f 100644
--- a/meta-oe/recipes-support/poco/poco/run-ptest
+++ b/meta-oe/recipes-support/poco/poco/run-ptest
@@ -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
-- 
2.42.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#104897): 
https://lists.openembedded.org/g/openembedded-devel/message/104897
Mute This Topic: https://lists.openembedded.org/mt/101395203/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to