From 5133af092183e76bb149baeaf0056086d2f80343 Mon Sep 17 00:00:00 2001 From: paul luse Date: Mon, 25 Feb 2019 18:03:58 -0500 Subject: [PATCH] test scripts: add -E to sudo git clone in vm_setup.sh Running as a non-privileged user, sudo git clone won't work without the -E because it won't get the proxy settings, for those using a proxy. Change-Id: I8b471abf0066312b0eb63449d00a5647737c0136 Signed-off-by: paul luse Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/446162 Tested-by: SPDK CI Jenkins Reviewed-by: Seth Howell Reviewed-by: Jim Harris Reviewed-by: Ben Walker --- test/common/config/vm_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/config/vm_setup.sh b/test/common/config/vm_setup.sh index 417192a35..ec945eeeb 100755 --- a/test/common/config/vm_setup.sh +++ b/test/common/config/vm_setup.sh @@ -292,7 +292,7 @@ function install_ocf() if echo $CONF | grep -q ocf; then if [ ! -d "$targetdir" ]; then - sudo git clone "${GIT_REPO_OCF}" "$targetdir" -b "$version" + sudo -E git clone "${GIT_REPO_OCF}" "$targetdir" -b "$version" else echo "OCF already installed. Skipping" fi