From: Andres Freund <andres@anarazel.de>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: pg_regress: Don't use absolute paths for the diff
Date: Fri, 22 Feb 2019 15:26:35 -0800
Message-ID: <20190222232635.jq6hekh4vxzjqcuf@alap3.anarazel.de> (raw)
In-Reply-To: <CAH2-Wz=ZaVxsQSiUJYULckMZcRdbAnP61EF=bkTK=KZMc4bBwg@mail.gmail.com>
References: <E1gwsel-0000LT-G0@gemulon.postgresql.org>
<CAH2-Wz=ZaVxsQSiUJYULckMZcRdbAnP61EF=bkTK=KZMc4bBwg@mail.gmail.com>
On 2019-02-22 15:18:51 -0800, Peter Geoghegan wrote:
> On Thu, Feb 21, 2019 at 10:01 AM Peter Eisentraut <peter@eisentraut.org> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de, pg@bowt.ie, peter@eisentraut.org
Subject: Re: pgsql: pg_regress: Don't use absolute paths for the diff
In-Reply-To: <20190222232635.jq6hekh4vxzjqcuf@alap3.anarazel.de>
References: <E1gwsel-0000LT-G0@gemulon.postgresql.org> <CAH2-Wz=ZaVxsQSiUJYULckMZcRdbAnP61EF=bkTK=KZMc4bBwg@mail.gmail.com> <20190222232635.jq6hekh4vxzjqcuf@alap3.anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox