]> 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:51:44 +0000 (11:51 -0400)
commitbd04dfba9f7e10274a6b2558e57e274403161373
tree4ff4d4587672bee5ed9fe6a7b9b8dfba0d2fe594
parent01c1b1aa25149674f9347f9d915533a53c33eff6
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