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 1mvKdV-0005dH-Sj for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Dec 2021 14:43:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mvKcz-0006MG-7H for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Dec 2021 14:42:33 +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 1mvKcy-0006M6-U9 for pgsql-hackers@lists.postgresql.org; Thu, 09 Dec 2021 14:42:32 +0000 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvKcr-00025m-Ml for pgsql-hackers@postgresql.org; Thu, 09 Dec 2021 14:42:31 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 064B020004; Thu, 9 Dec 2021 14:42:21 +0000 (UTC) Message-ID: <85a5c9e9-e0ac-693a-fe4e-ba82aa7c6c78@dunslane.net> Date: Thu, 9 Dec 2021 09:42:19 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: port conflicts when running tests concurrently on windows. Content-Language: en-US To: Andres Freund , pgsql-hackers@postgresql.org References: <20211208224550.jh4lbcbjsnukwatq@alap3.anarazel.de> <20211209003614.d6pvywjokbnojlv5@alap3.anarazel.de> <20211209010307.yxzuvsxygy5edqm4@alap3.anarazel.de> From: Andrew Dunstan In-Reply-To: <20211209010307.yxzuvsxygy5edqm4@alap3.anarazel.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/8/21 20:03, Andres Freund wrote: > > I wonder if we need a host2unix() helper accompanying perl2host()? Seems nicer > than sprinkling s!\\!/!g if $PostgreSQL::Test::Utils::windows_os in a growing > number of places... > Probably a good idea. I would call it canonical_path or something like that. / works quite happily as a path separator in almost all contexts on Windows - there are a handful of command line programs that choke on it - but sometimes you need to quote the path. WHen I recently provided for cross version upgrade testing on MSVC builds I just quoted everything. On Unix/Msys the shell just removes the quotes. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com