From 3e3d77f97bcfda0754f389d50ddc718a95637a82 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 3 Aug 2015 21:47:42 -0500 Subject: [PATCH] Testsuite: Bugfix, also pipe stderror in run_test.sh The run_test.sh script supports two different output options for tests, namely to directly write to a file 'output', or to just output on stdout. This commit changes the behavior for the latter situation. It reroutes stderr to stdout such that all output of a test is actually considered. The former case turned out to be a problem with deallog that writes to stderr. Note: In case of a test writing to output, stderr is still lost. --- cmake/scripts/run_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/scripts/run_test.sh b/cmake/scripts/run_test.sh index d69b76f7d0..229d7a66a9 100644 --- a/cmake/scripts/run_test.sh +++ b/cmake/scripts/run_test.sh @@ -40,7 +40,7 @@ run(){ rm -f failing_output rm -f output - ${RUN_COMMAND} > stdout + ${RUN_COMMAND} > stdout 2>&1 RETURN_VALUE=$? [ -f output ] || cp stdout output -- 2.39.5