Commit f83712e2 authored by ale's avatar ale

Stop ssh connections on failure too

parent c996cadf
Pipeline #5282 failed with stages
in 1 minute and 12 seconds
......@@ -36,6 +36,11 @@ stop_vagrant() {
pushd $test_dir
vagrant destroy -f
popd
# Kill long-term persistent connections, if any.
if [ -n "${LIBVIRT:-}" -a "${LIBVIRT}" != "localhost" ]; then
ssh -O exit ${LIBVIRT}
fi
}
check_hosts_ready() {
......@@ -214,11 +219,6 @@ if [ -e test.${test_name}.sh ]; then
|| die "env-specific test suite failed"
fi
# Kill long-term persistent connections, if any.
if [ -n "${LIBVIRT:-}" -a "${LIBVIRT}" != "localhost" ]; then
ssh -O exit ${LIBVIRT}
fi
# Stop the ssh-agent.
if [ -n "${FLOAT_TEST_SSH_PRIVATE_KEY}" ]; then
ssh-agent -k
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment