Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lxYsM-0004hb-K4 for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Jun 2021 17:47:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lxYsI-0000Bm-R5 for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Jun 2021 17:47:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lxAr8-0007N6-UK; Sat, 26 Jun 2021 16:08:30 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lxAr1-0007a7-Pu; Sat, 26 Jun 2021 16:08:29 +0000 Received: from pseudo (185.141.6.84.rev.sfr.net [84.6.141.185]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id C8E13C0422; Sat, 26 Jun 2021 18:10:17 +0200 (CEST) Date: Sat, 26 Jun 2021 18:08:19 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Andrew Dunstan cc: Michael Paquier , pgsql-committers@lists.postgresql.org, PostgreSQL Developers Subject: Re: pgsql: Fix pattern matching logic for logs in TAP tests of pgbench In-Reply-To: <9f70b570-9aa2-29cc-8732-34cc6d16d798@dunslane.net> Message-ID: References: <0f49303e-7784-b3ee-200b-cbf67be2eb9e@dunslane.net> <9f70b570-9aa2-29cc-8732-34cc6d16d798@dunslane.net> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk >> However, if slurp_file fails it raises an exception and aborts the >> whole TAP unexpectedly, which is pretty unclean. So I'd suggest to >> keep the eval, as attached. I tested it by changing the file name so >> that the slurp fails. > > Seem quite unnecessary. We haven't found that to be an issue elsewhere > in the code where slurp_file is used. And in the present case we know > the file exists because we got its name from list_files(). Fine with me! -- Fabien.