Fail fast during tests if python executable is not in the PATH (#6306)

This commit is contained in:
Adrien Ferrand 2018-08-16 21:28:25 +02:00 committed by Brad Warren
parent d8057f0e17
commit b1003b7250

View file

@ -10,6 +10,9 @@
set -eux
# Check that python executable is available in the PATH. Fail immediatly if not.
command -v python > /dev/null || (echo "Error, python executable is not in the PATH" && exit 1)
. ./tests/integration/_common.sh
export PATH="$PATH:/usr/sbin" # /usr/sbin/nginx