From f1a503aa84b6162e2eb17557c918a8e03494db92 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 4 Oct 2015 11:15:18 -0400 Subject: [PATCH] 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. --- 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 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} -- 2.39.5