Skip to content

Commit

Permalink
Fix bug in comparebfb.csh when restart data is missing (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-blain authored and apcraig committed May 9, 2019
1 parent b0063cb commit c4ea4de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configuration/scripts/tests/comparebfb.csh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -86,6 +88,7 @@ else
echo " missing data"
endif
end
unset nonomatch
endif

exit ${failure}
Expand Down

0 comments on commit c4ea4de

Please sign in to comment.