]> 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:45:50 +0000 (11:45 -0400)
commitc737a2e5641a324d3987750b73928c481a5254a0
tree17f685226e5b5653fa2d9440cb4af50f12b482fc
parentc2b51cf1903d5ed5e962ed68b4a4eeb40fe037db
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