Skip to content

Commit

Permalink
Rename variable/s to make them more descriptive.
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Aug 24, 2024
1 parent e88509e commit 7ecf7e2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions fc-solve/scripts/multi_config_tests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ sub _calc_build_path

sub _chdir_run
{
my ( $DIR, $cb ) = @_;
my ( $DIR_PATH_NAME, $cb ) = @_;

chdir($DIR);
chdir($DIR_PATH_NAME);
$cb->();
chdir($CWD);

Expand Down Expand Up @@ -769,15 +769,17 @@ sub enable_website_build_for_now
}
);

foreach my $dir (
foreach my $dir_path_name (
'../../cpan/Games-Solitaire-Verify/Games-Solitaire-Verify/',
'../../cpan/Freecell-Deal-MS/',
)
{
_chdir_run(
$dir,
$dir_path_name,
sub {
my ($mod) = ( $dir =~ m#/([^/]+)/\z#ms ) or Carp::confess("$dir");
my ($mod) = ( $dir_path_name =~ m#/([^/]+)/\z#ms )
or
Carp::confess("Cannot extract basename from '$dir_path_name'");
return run_cmd( "$mod dzil", { cmd => [qw(dzil test --all)] } );
}
);
Expand Down

0 comments on commit 7ecf7e2

Please sign in to comment.