From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 51A891FC5F for ; Sat, 10 Aug 2024 09:00:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1723280415; bh=snqUS6SznhPDHbU3WB30VvKRg2jBBkWMkNti5Y1td7Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FczkHLj6QXhoM9ErzhB1Fdk8CPXDXQnQ/QwmIPCStCJkOmt48PCYfPkHS83IRA9zn eK1S6k1zHv23v45WmY/jdppydxTFZVj4JPbYbLgyA9QzuMtb1nglBq8vj2CjGs5R95 /KgUhjbsptdn+lWwDECZiyuOLyBVPZYGpH/UWEjc= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 09/11] t/extsearch: use xsys_e to detect errors Date: Sat, 10 Aug 2024 09:00:10 +0000 Message-ID: <20240810090012.23269-10-e@80x24.org> In-Reply-To: <20240810090012.23269-1-e@80x24.org> References: <20240810090012.23269-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: More error detection is better in case we test on overloaded or broken systems. --- t/extsearch.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/t/extsearch.t b/t/extsearch.t index 37e1f024..16d75f63 100644 --- a/t/extsearch.t +++ b/t/extsearch.t @@ -51,7 +51,7 @@ ok(run_script([qw(-extindex --dangerous --all), "$home/extindex"]), } if ('with boost') { - xsys([qw(git config publicinbox.v1test.boost), 10], + xsys_e([qw(git config publicinbox.v1test.boost), 10], { GIT_CONFIG => $cfg_path }); ok(run_script([qw(-extindex --all), "$home/extindex-b"]), 'extindex init with boost'); @@ -66,7 +66,7 @@ if ('with boost') { is(scalar(@$xref3), 2, 'only to entries'); undef $es; - xsys([qw(git config publicinbox.v2test.boost), 20], + xsys_e([qw(git config publicinbox.v2test.boost), 20], { GIT_CONFIG => $cfg_path }); ok(run_script([qw(-extindex --all --reindex), "$home/extindex-b"]), 'extindex --reindex with altered boost'); @@ -88,9 +88,9 @@ if ('with boost') { like($v2[0], qr/\Av2\.example.*?\b\Q$smsg->{blob}\E\b/, 'smsg->{blob} respected boost across 2 index runs'); - xsys([qw(git config --unset publicinbox.v1test.boost)], + xsys_e([qw(git config --unset publicinbox.v1test.boost)], { GIT_CONFIG => $cfg_path }); - xsys([qw(git config --unset publicinbox.v2test.boost)], + xsys_e([qw(git config --unset publicinbox.v2test.boost)], { GIT_CONFIG => $cfg_path }); } @@ -392,7 +392,7 @@ SELECT MIN(tid) FROM over WHERE num > 0 } if ('remove v1test and test gc') { - xsys([qw(git config --unset publicinbox.v1test.inboxdir)], + xsys_e([qw(git config --unset publicinbox.v1test.inboxdir)], { GIT_CONFIG => $cfg_path }); my $opt = { 2 => \(my $err = '') }; ok(run_script([qw(-extindex --gc), "$home/extindex"], undef, $opt),