Change diff output to unified in pg_regress_multi.pl.

Unified is better understood by a lot of people, and the default
almost everywhere (including github).
pull/1110/head
Andres Freund 2017-01-09 16:49:40 -08:00
parent 16608a3259
commit f2ee63d638
1 changed files with 7 additions and 0 deletions

View File

@ -96,6 +96,13 @@ if (defined $bindir)
$ENV{PATH} = ($ENV{PATH} || '').":$bindir"; $ENV{PATH} = ($ENV{PATH} || '').":$bindir";
} }
# Most people are used to unified diffs these days, rather than the
# context diffs pg_regress defaults to. Change default to avoid
# everyone having to (re-)learn how to change that setting. Also add
# a bit more context to make it easier to locate failed test sections.
$ENV{PG_REGRESS_DIFF_OPTS} = '-du10';
my $plainRegress = "$pgxsdir/src/test/regress/pg_regress"; my $plainRegress = "$pgxsdir/src/test/regress/pg_regress";
my $isolationRegress = "${postgresBuilddir}/src/test/isolation/pg_isolation_regress"; my $isolationRegress = "${postgresBuilddir}/src/test/isolation/pg_isolation_regress";
if ($isolationtester && ! -f "$isolationRegress") if ($isolationtester && ! -f "$isolationRegress")