]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Testsuite: Bugfix, also pipe stderror in run_test.sh
authorMatthias Maier <tamiko@43-1.org>
Tue, 4 Aug 2015 02:47:42 +0000 (21:47 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 4 Aug 2015 02:49:35 +0000 (21:49 -0500)
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

index d69b76f7d0eda132f375f2acf4b49158cae1c07d..229d7a66a92fb8c118c041c6f7bb57b360acd779 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.