From c4ea4de78202dfcbf027b7695cbb2b6a091efc44 Mon Sep 17 00:00:00 2001 From: Philippe Blain <44212482+phil-blain@users.noreply.github.com> Date: Thu, 9 May 2019 18:23:59 -0400 Subject: [PATCH] Fix bug in comparebfb.csh when restart data is missing (#311) --- configuration/scripts/tests/comparebfb.csh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configuration/scripts/tests/comparebfb.csh b/configuration/scripts/tests/comparebfb.csh index 35000bc79..046f40651 100755 --- a/configuration/scripts/tests/comparebfb.csh +++ b/configuration/scripts/tests/comparebfb.csh @@ -65,6 +65,8 @@ if ($filearg == 1) then else set end_date = `ls -t1 $test_dir | head -1 | sed 's|^.*\([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9][0-9]\).*|\1|'` + # set nonomatch so that if foreach does not find anything it does not end the script + set nonomatch foreach test_data (${test_dir}/iced*${end_date}*) set test_file = "${test_data:t}" if ($restart == 1) then @@ -86,6 +88,7 @@ else echo " missing data" endif end + unset nonomatch endif exit ${failure}