Skip to content

Commit

Permalink
Updated integration test for DISP-S1 to CalVal spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Collins committed Aug 16, 2024
1 parent 38fcbb3 commit 8c6bc86
Show file tree
Hide file tree
Showing 10 changed files with 1,055 additions and 533 deletions.
7 changes: 4 additions & 3 deletions .ci/scripts/disp_s1/compare_disp_s1_products.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,21 @@ do
compare_out="N/A"
compare_result="N/A"
expected_file="N/A"
compare_exit_status=0

echo "Evaluating output file $output_file"

if [[ "${output_file##*/}" == *.unw.nc ]]
if [[ "${output_file##*/}" == *.nc ]]
then
output_file=$(basename ${output_file})
output_file_dates="${output_file%%.*}"

echo "Output product date range is ${output_file_dates}"

# Find the matching expected output product based on date range
for potential_file in "$EXPECTED_DIR"/*.unw.nc
for potential_file in "$EXPECTED_DIR"/*.nc
do
if [[ "$potential_file" == *"${output_file_dates}.unw.nc" ]]; then
if [[ "$potential_file" == *"${output_file_dates}.nc" ]]; then
expected_file=$potential_file
echo "Expected output file is $expected_file"
break
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8c6bc86

Please sign in to comment.