From: Timo Heister Date: Sun, 4 Oct 2015 15:15:18 +0000 (-0400) Subject: avoid test variant error output X-Git-Tag: v8.4.0-rc2~344^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1a503aa84b6162e2eb17557c918a8e03494db92;p=dealii.git avoid test variant error output If no variant is present, the diff script used to output a line like numdiff: /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. --- diff --git a/cmake/scripts/run_test.sh b/cmake/scripts/run_test.sh index f0df2eb008..3f652a4a96 100644 --- a/cmake/scripts/run_test.sh +++ b/cmake/scripts/run_test.sh @@ -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}