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"
