Re: BUG #16484: pg_regress fails with --outputdir parameter

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: r(dot)zharkov(at)postgrespro(dot)ru, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16484: pg_regress fails with --outputdir parameter
Date: 2020-06-09 05:33:56
Message-ID: 20200609053356.GC38342@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Jun 08, 2020 at 11:09:42AM +0200, Daniel Gustafsson wrote:
> Nice catch, testing the attached patch does indeed make pg_regress run without
> errors if outputdir doesn't exist.

No objections to that. That seems more useful than having to recreate
them before running any custom script specifying --outputdir.

> While looking at it though, I noticed that we nearby use stat() in a single
> place while the rest use check_directory(). Is there a reason to not use
> check_directory consistently as per the attached diff?

Indeed. And two extra things are that you can just simplify
src/bin/pg_upgrade/test.sh and src/tools/msvc/vcregress.pl so as they
don't create manually those repositories. This report is not really
annoying for the average user in my opinion, so there may be little
point in backpatching this stuff.

And this leads me to the attached.
--
Michael

Attachment Content-Type Size
pg_regress_stat_v3.diff text/x-diff 1.9 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2020-06-09 05:55:06 Re: BUG #16484: pg_regress fails with --outputdir parameter
Previous Message Alexander Lakhin 2020-06-09 04:00:01 Re: BUG #16486: Prompted password is ignored when password specified in connection string