From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5080D1F5AE for ; Thu, 22 Jul 2021 08:37:36 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/solver_git: use like() to improve error reporting Date: Thu, 22 Jul 2021 08:37:36 +0000 Message-Id: <20210722083736.29559-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: I hit a test failure here, but haven't been able to reproduce it... --- t/solver_git.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/solver_git.t b/t/solver_git.t index 13e478b3..fe1aff0b 100644 --- a/t/solver_git.t +++ b/t/solver_git.t @@ -84,7 +84,7 @@ index 15ac20eb..771486c4 @@ -1,13 +1,12 @@ #!perl -w EOM - ok(index($lei_out, $exp) >= 0, + like($lei_out, qr/\Q$exp\E/, 'preserve mode, regen header + context from -U0 patch'); my $e = { GIT_DIR => "$ENV{HOME}/.local/share/lei/store/ALL.git" }; my @x = xqx([qw(git cat-file --batch-all-objects --batch-check)], $e);