Skip to contentSkip to conversation

libgpiod: ptest: redirect stderr to stdout for test executables

PATCH New Bartosz Golaszewski 1 participant 1 message Nov 30, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta-oe/recipes-support/libgpiod/files/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/libgpiod/files/run-ptest +1 -1
index 60c661fc1..61b9b69fc 100644
@@ -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
Signature · 1 line
2.25.1