From: Matthias Maier Date: Fri, 6 Jan 2017 19:40:29 +0000 (-0600) Subject: Bugfix: Quote paths in run_test.sh X-Git-Tag: v8.5.0-rc1~286^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09e3686eb9ddd7738f44e4c0ba3d8abc449c0b30;p=dealii.git Bugfix: Quote paths in run_test.sh This fixes a long outstanding regression with the testsuite in combination with paths containing spaces. --- diff --git a/cmake/scripts/run_test.sh b/cmake/scripts/run_test.sh index 897e4ca7b2..23fbc35858 100644 --- a/cmake/scripts/run_test.sh +++ b/cmake/scripts/run_test.sh @@ -44,7 +44,7 @@ run(){ rm -f output rm -f stdout - ${RUN_COMMAND} > stdout 2>&1 + "${RUN_COMMAND}" > stdout 2>&1 RETURN_VALUE=$? [ -f output ] || mv stdout output @@ -79,16 +79,16 @@ diff() { # for file in "${COMPARISON_FILE}"*; do # determine variant name (empty string for main comparison file): - variant=${file#*.output} + variant="${file#*.output}" # # Run diff or numdiff (if available) to determine whether files are the # same. Create a diff file "diff${variant}" for each variant file that # is found (including the main comparison file). # - case ${NUMDIFF_EXECUTABLE} in + case "${NUMDIFF_EXECUTABLE}" in *numdiff*) - ${NUMDIFF_EXECUTABLE} -a 1e-6 -r 1e-8 -s ' \t\n:<>=,;' \ + "${NUMDIFF_EXECUTABLE}" -a 1e-6 -r 1e-8 -s ' \t\n:<>=,;' \ "${file}" output > diff${variant} ;; *)