diff mbox series

[meta-oe,blacksail,28/95] libgpiod: Show the output of failing tests in ptest log

Message ID 20261203111406.4182597-28-ankur.tyagi85@gmail.com
State New
Headers show
Series [meta-gnome,blacksail,1/95] eog: upgrade 50.3 -> 50.4 | expand

Commit Message

Ankur Tyagi Dec. 3, 2026, 11:12 a.m. UTC
From: Khem Raj <khem.raj@oss.qualcomm.com>

run-ptest wrote each test's output into a file in the image, so an
intermittent gpiod-glib-test failure in testimage left nothing to debug.
Print the output when a test fails.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 6f348d558d24459e547c1c3e812e7fe23299abd6)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest b/meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest
index eae172116f..8403102d4d 100644
--- a/meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest
+++ b/meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest
@@ -20,6 +20,8 @@  run_one_test() {
 
 	./$testbin > ./$testbin.out 2>&1
 	if [ $? -ne 0 ]; then
+		# keep the details of intermittent failures in the ptest log
+		cat ./$testbin.out
 		echo "FAIL: $testbin"
 	else
 		echo "PASS: $testbin"