]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/lei-mirror: do not bail out on `make help' failure
authorEric Wong <e@80x24.org>
Thu, 14 Sep 2023 12:12:55 +0000 (12:12 +0000)
committerEric Wong <e@80x24.org>
Thu, 14 Sep 2023 20:52:57 +0000 (20:52 +0000)
I'm not sure why, but this test occasionally fails on OpenBSD
and I can't reproduce it on a repeatable basis.  In any case,
there's no reason we can't continue the rest of the test if
`make help' fails.

t/lei-mirror.t

index 2400578a76f306d6d637a488154523cc3f371c57..9b5d73ec9b73851186dd11d0d99bc02f39a80413 100644 (file)
@@ -27,7 +27,8 @@ test_lei({ tmpdir => $tmpdir }, sub {
                "mirror of $http/t1/\n", 'description set');
        ok(-f "$t1/Makefile", 'convenience Makefile added (v1)');
        my $make = which('make');
-       xsys_e([$make, 'help'], undef, { -C => $t1, 1 => \(my $help) });
+       is(xsys([$make, 'help'], undef, { -C => $t1, 1 => \(my $help) }), 0,
+               'make help');
        ok(-f "$t1/inbox.config.example", 'inbox.config.example downloaded');
        isnt($help, '', 'make help worked');
        is((stat(_))[9], $created{v1},