From 6f348d558d24459e547c1c3e812e7fe23299abd6 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 25 Oct 2026 14:19:56 -0700 Subject: [PATCH] libgpiod: Show the output of failing tests in ptest log 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 --- meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest | 2 ++ 1 file changed, 2 insertions(+) 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"