]> granicus.if.org Git - postgresql/commit
pg_regress: Don't use absolute paths for the diff
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 21 Feb 2019 17:34:19 +0000 (18:34 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 21 Feb 2019 17:34:19 +0000 (18:34 +0100)
commit1995552deb5479a50ec9044f0179f906ff7772e0
treee4800e179d41e5b9743d8ef791179197c0b5670c
parent1bb5e78218107db543086e71fc162d36a955b08e
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.

Discussion: https://www.postgresql.org/message-id/0cc82900-c457-1cee-3ab2-7b0f5d215061@2ndquadrant.com
src/test/regress/pg_regress.c