From 09e3686eb9ddd7738f44e4c0ba3d8abc449c0b30 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 6 Jan 2017 13:40:29 -0600 Subject: [PATCH] Bugfix: Quote paths in run_test.sh This fixes a long outstanding regression with the testsuite in combination with paths containing spaces. --- cmake/scripts/run_test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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} ;; *) -- 2.39.5