Work around NetBSD shell issue in pg_upgrade test script.

Andrew Dunstan <andrew@dunslane.net>

Commit: bd04dfba9f7e10274a6b2558e57e274403161373
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2013-10-28T15:51:44Z
Releases: 9.3.2
Work around NetBSD shell issue in pg_upgrade test script.

The NetBSD shell apparently returns non-zero from an unset command if
the variable is already unset. This matters when, as in pg_upgrade's
test.sh, we are working under 'set -e'. To protect against this, we
first set the PG variables to an empty string before unsetting them
completely.

Error found on buildfarm member coypu, solution from Rémi Zara.

Files

PathChange+/−
contrib/pg_upgrade/test.sh modified +12 −8