]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v2mirror.t
fetch: support --exit-code switch
[public-inbox.git] / t / v2mirror.t
index 54ad6945f86be00107eb207050dc9d235279ab94..3df5d05372223243d8f056218477cdd9d1056608 100644 (file)
@@ -98,8 +98,9 @@ $ibx->cleanup;
 my @new_epochs;
 my $fetch_each_epoch = sub {
        my %before = map { $_ => 1 } glob("$tmpdir/m/git/*");
-       run_script([qw(-fetch -q)], undef, {-C => "$tmpdir/m"}) or
+       run_script([qw(-fetch --exit-code -q)], undef, {-C => "$tmpdir/m"}) or
                xbail '-fetch fail';
+       is($?, 0, '--exit-code 0 after fetch updated');
        my @after = grep { !$before{$_} } glob("$tmpdir/m/git/*");
        push @new_epochs, @after;
 };