]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/lei-up: use '-q' to silence non-redirected test
authorEric Wong <e@80x24.org>
Tue, 21 Sep 2021 09:29:43 +0000 (09:29 +0000)
committerEric Wong <e@80x24.org>
Tue, 21 Sep 2021 19:18:36 +0000 (19:18 +0000)
We could redirect, too, but just use -q since we don't care
for the output with run_mode => 0.

t/lei-up.t

index 8937cfb18e7d03dc71c693bbc4971d08d55a2c98..fc3691562ceac95d0d478b09a5a43aaddf0d0458 100644 (file)
@@ -35,7 +35,7 @@ test_lei(sub {
        $uc = do { local $/; <$fh> };
        is($uc, $exp, 'uncompressed both match');
 
-       lei_ok [ 'up', "$ENV{HOME}/b", "--mua=touch $ENV{HOME}/c" ],
+       lei_ok [ qw(up -q), "$ENV{HOME}/b", "--mua=touch $ENV{HOME}/c" ],
                undef, { run_mode => 0 };
        ok(-f "$ENV{HOME}/c", '--mua works with single output');
 });