From e21d23ad95d4a50880b6a8dbabfaceccac5c1a99 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 14 Sep 2023 12:12:55 +0000 Subject: [PATCH] t/lei-mirror: do not bail out on `make help' failure 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/lei-mirror.t b/t/lei-mirror.t index 2400578a7..9b5d73ec9 100644 --- a/t/lei-mirror.t +++ b/t/lei-mirror.t @@ -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}, -- 2.47.2