mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-13 15:47:23 +00:00
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 <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 file changed
+2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user