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 1lxYsJ-0004hb-RH for pgsql-hackers@arkaria.postgresql.org; Sun, 27 Jun 2021 17:47:19 +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-0000Bl-R6 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 1lxNeo-0001zq-OV; Sun, 27 Jun 2021 05:48:38 +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 1lxNeg-0005Hf-M7; Sun, 27 Jun 2021 05:48:37 +0000 Received: from pseudo (185.141.6.84.rev.sfr.net [84.6.141.185]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id 06415C013B; Sun, 27 Jun 2021 07:50:24 +0200 (CEST) Date: Sun, 27 Jun 2021 07:48:25 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Michael Paquier cc: Andrew Dunstan , pgsql-committers@lists.postgresql.org, PostgreSQL Developers Subject: Re: pgsql: Fix pattern matching logic for logs in TAP tests of pgbench In-Reply-To: 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 >> 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(). > > Agreed. That's an exchange between a hard failure mid-test and a > failure while letting the whole test run. Here, we expect the test to > find the log file all the time, so a hard failure does not sound like > a bad thing to me either. Ok, fine with me! -- Fabien.