Index: src/scripts/run_remote_tests.sh |
diff --git a/src/scripts/run_remote_tests.sh b/src/scripts/run_remote_tests.sh |
index b50ef068371ce57a32e66bf56c69658cc0c23093..1630b9d2c99f2b271ec12cdda7b2f93306ad1eb8 100755 |
--- a/src/scripts/run_remote_tests.sh |
+++ b/src/scripts/run_remote_tests.sh |
@@ -29,11 +29,7 @@ function cleanup() { |
else |
echo "Left temporary files at ${TMP}" |
fi |
- if [[ -n "${SSH_AGENT_PID}" ]] |
- then |
- kill ${SSH_AGENT_PID} 2>/dev/null |
- unset SSH_AGENT_PID SSH_AUTH_SOCK |
- fi |
+ cleanup_remote_access |
} |
# Returns an error if the test_result_file has text which indicates |