vm_setup: Preserve environment when calling sudo
Make sure that environment is preserved for each call to sudo to, e.g. make sure proxy configuration is not lost when executing given package manager. Change-Id: If221d8d6546fc0ae4f02bc5814b6688c6d78cdd6 Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2739 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com>
This commit is contained in:
parent
70dfde6f1e
commit
7d2b98a770
@ -18,6 +18,10 @@
|
||||
|
||||
# We have made a lot of progress with removing hardcoded paths from the tests,
|
||||
|
||||
sudo() {
|
||||
"$(type -P sudo)" -E "$@"
|
||||
}
|
||||
|
||||
set -e
|
||||
|
||||
VM_SETUP_PATH=$(readlink -f ${BASH_SOURCE%/*})
|
||||
|
Loading…
Reference in New Issue
Block a user