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 <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Bartosz Golaszewski
2021-11-30 15:52:50 +01:00
committed by Khem Raj
parent 213cf9f5e6
commit ac67765cb0
@@ -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