Skip to content

Commit

Permalink
Push test args injection down into iterator creation to cover all cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyA committed Jul 11, 2010
1 parent f21ad26 commit 80cf038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TAP/Parser.pm
Expand Up @@ -452,7 +452,7 @@ sub make_result { shift->result_factory_class->make_result(@_); }
}
elsif ($exec) {
$type = 'exec ' . $exec->[0];
$source->raw( { exec => [ @$exec, @$test_args ] } );
$source->raw( { exec => $exec } );
}
elsif ($raw_source) {
$type = 'source ' . ref($raw_source) || $raw_source;
Expand Down
2 changes: 2 additions & 0 deletions lib/TAP/Parser/SourceHandler/Executable.pm
Expand Up @@ -120,6 +120,8 @@ sub make_iterator {
$class->_autoflush( \*STDOUT );
$class->_autoflush( \*STDERR );

push @command, @{ $source->test_args || [] };

return $class->iterator_class->new(
{ command => \@command,
merge => $source->merge
Expand Down

1 comment on commit 80cf038

@avar
Copy link
Contributor

@avar avar commented on 80cf038 Jul 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this with Git and confirmed that it fixes RT# 59186. Thanks.

Please sign in to comment.