diff --git a/tests/setup_gate.sh b/tests/setup_gate.sh index 5fdc62ec79..7919f4ae95 100755 --- a/tests/setup_gate.sh +++ b/tests/setup_gate.sh @@ -18,5 +18,10 @@ if [[ ! -f /etc/sudoers.d/jenkins ]]; then echo "jenkins ALL=(:docker) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/jenkins fi +# This creates a logs directory for the devstack logs publisher +mkdir logs +# We symlink the logs dir to a known location +ln -s $(pwd)/logs /tmp/logs + distro=$(awk -F'[="]'+ '/^ID/ {print tolower($2); exit}' /etc/*-release) exec tests/setup_${distro}.sh