Revert "Move set -u down below self-exec"

This reverts commit 6bde65a738.
This commit is contained in:
Seth Schoen 2018-10-16 14:31:03 -07:00
parent 6bde65a738
commit 91f26baeee

View file

@ -8,7 +8,7 @@
#
# Note: this script is called by Boulder integration test suite!
set -ex
set -eux
# Check that python executable is available in the PATH. Fail immediately if not.
command -v python > /dev/null || (echo "Error, python executable is not in the PATH" && exit 1)
@ -21,9 +21,6 @@ command -v python > /dev/null || (echo "Error, python executable is not in the P
# running it only when the CI environment variable is already set.]
[ -z "$SYNTHETIC_PTY" ] && SYNTHETIC_PTY=true exec python -c 'import pty, sys; pty.spawn(sys.argv[1:])' "$0" "$@"
# The SYNTHETIC_PTY item above doesn't work if set -u has already been run.
set -u
. ./tests/integration/_common.sh
export PATH="$PATH:/usr/sbin" # /usr/sbin/nginx