From: Matthias Maier Date: Tue, 4 Aug 2015 02:47:42 +0000 (-0500) Subject: Testsuite: Bugfix, also pipe stderror in run_test.sh X-Git-Tag: v8.4.0-rc2~686^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e3d77f97bcfda0754f389d50ddc718a95637a82;p=dealii.git 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. --- 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