Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxKDL-00078W-FM for pgsql-committers@arkaria.postgresql.org; Fri, 22 Feb 2019 23:26:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gxKDJ-0002Yo-U7 for pgsql-committers@arkaria.postgresql.org; Fri, 22 Feb 2019 23:26:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxKDJ-0002Yd-OR for pgsql-committers@lists.postgresql.org; Fri, 22 Feb 2019 23:26:41 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxKDH-0001BO-EN for pgsql-committers@lists.postgresql.org; Fri, 22 Feb 2019 23:26:41 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 11FEF22E6A; Fri, 22 Feb 2019 18:26:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 22 Feb 2019 18:26:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=OGchCAqcUnJvzM01nOnyozzUGSr pWa7gzyzCZr45VIA=; b=N4Khdgp2jnG3/mXmbxrihOk4GAydyhfw+xejoRlhtm8 t0rjK+A2ehkLHzSUwcVVS7BNn6Yp9r0SVZGTp4QtztAMX0T24sLq+Gv7solbS/d+ i4fuEXsmx4UIQXe8GcTnyfX310ik1tWm/5RH1Izsktw+4vn9NboPn/PytCBjou61 FeMoTpt99k+PQ1UiqjyPC7l70jCVmfSrGqXzQLgsX6eK+2KB14YOeMBL8aXcFrgK dAHAl/JVCyjL+senckpN2IvEXtenOZkJw71TSCrCBL0AInSlI+bXIE5kqBDhgbn8 42Bkoo30wKSTnPTeytJp+Yreyss4MAGhlrWscsFRNaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=OGchCA qcUnJvzM01nOnyozzUGSrpWa7gzyzCZr45VIA=; b=neO9Kb5jMfOI/D4T7Sp+eU Fv4T2Mdi8wUQgfISGzi68nUGGayKnuahM3ntIE1AXnwe9YDzyg5Pj8NSbgoDRTV7 Qcy+yOFVp6TK50aMereoIZxKbJOuI/AOt/g0YbPmLHMO1fHgMDBcBj/5UIg8GLX0 XzYDof1BuyKagHHFAZLYp9D7ifPFqLagkzV7Fe0BJjWqGy9tKyi/CY1m/di01Hvf AO31Ey9+wDh7JqSJxL2YjgzWFxTZbtTE/+uorBzCA5jSShWhJONRHKRMpYOOI9cd kctXTS1qF6/UgleTPYsVyIB7c8o/MlFpCIlLGrPHIxfSpGvF6drrjIINhVHoXE7w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddruddugddtfeculddtuddrgedtledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkpheple ekrddvuddtrddugedtrddujedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgv shesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id AC644E4597; Fri, 22 Feb 2019 18:26:36 -0500 (EST) Date: Fri, 22 Feb 2019 15:26:35 -0800 From: Andres Freund To: Peter Geoghegan Cc: Peter Eisentraut , pgsql-committers Subject: Re: pgsql: pg_regress: Don't use absolute paths for the diff Message-ID: <20190222232635.jq6hekh4vxzjqcuf@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-02-22 15:18:51 -0800, Peter Geoghegan wrote: > On Thu, Feb 21, 2019 at 10:01 AM Peter Eisentraut wrote: > > pg_regress: Don't use absolute paths for the diff > > > > Don't expand inputfile and outputfile to absolute paths globally, just > > where needed. In particular, pass them as is to the file name > > arguments of the diff command, so that we don't see the full absolute > > path in the diff header, which makes the diff unnecessarily verbose > > and harder to read. > > This broke some of my tooling for quickly reconciling expected and > actual test outputs from my text editor. > > I don't think that this was a great idea. Same. The output in my local vpath build is now: diff -du10 /home/andres/src/postgresql/src/test/regress/expected/strings.out ./results/strings.out --- /home/andres/src/postgresql/src/test/regress/expected/strings.out 2019-02-08 23:47:42.975815837 -0800 +++ ./results/strings.out 2019-02-22 15:23:41.857719662 -0800 that's useless, because I can't trivially copy the result file into the expected file anymore. I have to figure out where in the tree it is. Which isn't exactly predictable, between the different tests we have as they locate their test results in different places. This is a bad idea. Greetings, Andres Freund