use File::Spec::Functions qw/catdir catfile/;
use File::Temp qw/tempfile tempdir/;
-use Test::More tests => 2 + 3 * 2;
+use Test::More tests => 2 + 2 * 2 + 11 * (3 + 1);
use App::Rgit;
my @lines = split /\n/, do { local $/; <$fh> };
my $res = [ map [ split /\|/, $_ ], @lines ];
my $exp = [ map [ $cmd, @$_ ], $fail ? $expected[0] : @expected ];
- is_deeply($res, $exp, "each $cmd did the right thing");
+ for my $i (0 .. $#$exp) {
+ my $e = $exp->[$i];
+ my $r = shift @$res;
+ isnt($r, undef, "each $cmd visited repository $i");
+SKIP:
+ {
+ skip 'didn\'t visited that repo' => 10 unless defined $r;
+ is($r->[$_], $e->[$_], "each $cmd argument $_ for repository $i is ok")
+ for 0 .. 9;
+ }
+ }
}