From ac67765cb09ebb43e1a2ecbea7e0f425b3cffcbb Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Tue, 30 Nov 2021 15:52:50 +0100 Subject: [PATCH] libgpiod: ptest: redirect stderr to stdout for test executables Catch2 (used by the C++ tests) prints its output to stderr instead of stdout. Redirect stderr to stdout for all test executables. Signed-off-by: Bartosz Golaszewski Signed-off-by: Khem Raj --- meta-oe/recipes-support/libgpiod/files/run-ptest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/libgpiod/files/run-ptest b/meta-oe/recipes-support/libgpiod/files/run-ptest index 60c661fc10..61b9b69fc6 100644 --- a/meta-oe/recipes-support/libgpiod/files/run-ptest +++ b/meta-oe/recipes-support/libgpiod/files/run-ptest @@ -7,7 +7,7 @@ cd $ptestdir/tests for testbin in $testbins; do if test -e ./$testbin; then - ./$testbin > ./$testbin.out + ./$testbin > ./$testbin.out 2>&1 if [ $? -ne 0 ]; then echo "FAIL: $testbin" else