Skip to content

Commit

Permalink
Add -f to calls of rm in build-namelist_test.pl.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Nov 12, 2024
1 parent 931b425 commit a55ba1a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bld/unit_testers/build-namelist_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ sub cat_and_create_namelistinfile {
}
}
}
system( "/bin/rm $namelistfile" );
system( "/bin/rm -f $namelistfile" );
&cleanup();
}
print "\n===============================================================================\n";
Expand Down Expand Up @@ -466,7 +466,7 @@ sub cat_and_create_namelistinfile {
if ( defined($opts{'generate'}) ) {
$cfiles->copyfiles( "$options", $mode );
}
system( "/bin/rm $namelistfile" );
system( "/bin/rm -f $namelistfile" );
&cleanup();
}

Expand Down Expand Up @@ -1971,7 +1971,7 @@ sub cat_and_create_namelistinfile {
}
&cleanup();

system( "/bin/rm $finidat" );
system( "/bin/rm -f $finidat" );

print "\n==================================================\n";
print " Dumping output \n";
Expand All @@ -1982,7 +1982,7 @@ sub cat_and_create_namelistinfile {
print "Successfully ran all testing for build-namelist\n\n";

&cleanup( "config" );
system( "/bin/rm $tempfile" );
system( "/bin/rm -f $tempfile" );

sub cleanup {
#
Expand All @@ -1993,10 +1993,10 @@ sub cleanup {
print "Cleanup files created\n";
if ( defined($type) ) {
if ( $type eq "config" ) {
system( "/bin/rm config_cache.xml" );
system( "/bin/rm -f config_cache.xml" );
}
} else {
system( "/bin/rm $tempfile *_in" );
system( "/bin/rm -f $tempfile *_in" );
}
}

0 comments on commit a55ba1a

Please sign in to comment.