]> granicus.if.org Git - postgresql/commit
Work around NetBSD shell issue in pg_upgrade test script.
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 28 Oct 2013 15:45:50 +0000 (11:45 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 28 Oct 2013 15:55:57 +0000 (11:55 -0400)
commit9060cb96805e0d3cfe74c0919feb5e2ce1034ffc
treef3026361d43cffdf3bdcc44ce10ac2e98a299111
parent4da24f12e63313b7dbb6b3e3d0317e04045df636
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.
contrib/pg_upgrade/test.sh