]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/init.t
init: favor --skip-epoch instead of --skip
[public-inbox.git] / t / init.t
index 86b4eb5c72e67b74a3474b1aee2030e3d3b71cec..667b09fee902caaa8098afee342627a19ca1704d 100644 (file)
--- a/t/init.t
+++ b/t/init.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2018 all contributors <meta@public-inbox.org>
+# Copyright (C) 2014-2019 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use warnings;
@@ -86,17 +86,17 @@ SKIP: {
        for (1..2) {
                @cmd = (pi_init, '-V2', '-S1', 'skip1', "$tmpdir/skip1",
                           qw(http://example.com/skip1 skip1@example.com));
-               is(system(@cmd), 0, "--skip 1");
+               is(system(@cmd), 0, "--skip-epoch 1");
                my $gits = [ glob("$tmpdir/skip1/git/*.git") ];
-               is_deeply(["$tmpdir/skip1/git/1.git"], $gits, 'skip OK');
+               is_deeply($gits, ["$tmpdir/skip1/git/1.git"], 'skip OK');
        }
 
 
-       @cmd = (pi_init, '-V2', '--skip=2', 'skip2', "$tmpdir/skip2",
+       @cmd = (pi_init, '-V2', '--skip-epoch=2', 'skip2', "$tmpdir/skip2",
                   qw(http://example.com/skip2 skip2@example.com));
-       is(system(@cmd), 0, "--skip 2");
+       is(system(@cmd), 0, "--skip-epoch 2");
        my $gits = [ glob("$tmpdir/skip2/git/*.git") ];
-       is_deeply(["$tmpdir/skip2/git/2.git"], $gits, 'skipping 2 works, too');
+       is_deeply($gits, ["$tmpdir/skip2/git/2.git"], 'skipping 2 works, too');
 }
 
 done_testing();