Browse Source

Kill sudo once we don't need it anymore

Calling "sudo -k" ensures we don't let dangling sudo session in the
current shell.

Change-Id: Ibe324afe2d251f5b71dedc02230bbcfa13888996
changes/54/761154/1
Cédric Jeanneret 12 months ago
parent
commit
3a796fc328
  1. 3
      scripts/run-local-test

3
scripts/run-local-test

@ -80,6 +80,9 @@ fi
# Display list of installed packages with versions (debugging failures)
"${HOME}/test-python/bin/pip" freeze
# Ensure we don't keep any dangling sudo session in the shell
sudo -k
# Run local test
PS1="[\u@\h \W]\$" source "${HOME}/test-python/bin/activate"
source "${PROJECT_DIR}/ansible-test-env.rc"

Loading…
Cancel
Save