Skip to content

Commit

Permalink
Correct the name of the hash to use in the checks that hash values ar…
Browse files Browse the repository at this point in the history
…e all set in fail, warn, and finidat tests
  • Loading branch information
ekluzek committed Oct 1, 2024
1 parent 5173018 commit 3295adb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bld/unit_testers/build-namelist_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ sub cat_and_create_namelistinfile {

my $var;
foreach $var ( "phys" , "options", "namelst" ) {
if ( not exists $failtest{$key}{$var} ) {
if ( not exists $warntest{$key}{$var} ) {
die "ERROR: Subkey $var does not exist for warntest $key\nERROR:Check if you spelled $var correctly\n"
}
}
Expand Down Expand Up @@ -1613,7 +1613,7 @@ sub cat_and_create_namelistinfile {

my $var;
foreach $var ( "phys" , "atm_forc", "res", "bgc", "crop", "use_case", "start_ymd", "namelist" ) {
if ( not exists $failtest{$key}{$var} ) {
if ( not exists $finidat_files{$key}{$var} ) {
die "ERROR: Subkey $var does not exist for finidat_file $key\nERROR:Check if you spelled $var correctly\n"
}
}
Expand Down

0 comments on commit 3295adb

Please sign in to comment.