]> https://gitweb.dealii.org/ - dealii.git/commitdiff
avoid test variant error output 1712/head
authorTimo Heister <timo.heister@gmail.com>
Sun, 4 Oct 2015 15:15:18 +0000 (11:15 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 4 Oct 2015 15:15:18 +0000 (11:15 -0400)
If no variant is present, the diff script used to output a line like

numdiff: <bla>/tests/trilinos/precondition_muelu_q_iso_q1.with_trilinos>=11.14.with_64bit_indices=off.output.*: No such file or directory

because a glob in a for statement in bash will return it literally if no
files matches the pattern. This fixes it.

cmake/scripts/run_test.sh

index f0df2eb008fb98457a51daa231fdbdf1924f5563..3f652a4a963ef9e5acbfe680691e68cc3e3b6b62 100644 (file)
@@ -77,7 +77,7 @@ diff() {
   # Pick up main comparison file and all variants. A valid variant name is
   # of the form [...].output.[STRING]
   #
-  for file in "${COMPARISON_FILE}" "${COMPARISON_FILE}".*; do
+  for file in "${COMPARISON_FILE}"*; do
     # determine variant name (empty string for main comparison file):
     variant=${file#*.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.