mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 02:18:41 +00:00
tests: Also propagate the https proxy
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
8afb3e612e
commit
198a3f10d2
@ -51,11 +51,9 @@ cleanup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run_cmd() {
|
run_cmd() {
|
||||||
if [ -n "${http_proxy:-}" ]; then
|
sudo -i -u $TUSER \
|
||||||
sudo -i -u $TUSER env http_proxy=$http_proxy XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) $*
|
env http_proxy=${http_proxy:-} https_proxy=${https_proxy:-} \
|
||||||
else
|
XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) $*
|
||||||
sudo -i -u $TUSER env XDG_RUNTIME_DIR=/run/user/$(id -u $TUSER) $*
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# create a test user
|
# create a test user
|
||||||
|
@ -57,11 +57,9 @@ cleanup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run_cmd() {
|
run_cmd() {
|
||||||
if [ -n "${http_proxy:-}" ]; then
|
sudo -i -u usernic-user \
|
||||||
sudo -i -u usernic-user env http_proxy=$http_proxy XDG_RUNTIME_DIR=/run/user/$(id -u usernic-user) $*
|
env http_proxy=${http_proxy:-} https_proxy=${https_proxy:-} \
|
||||||
else
|
XDG_RUNTIME_DIR=/run/user/$(id -u usernic-user) $*
|
||||||
sudo -i -u usernic-user env XDG_RUNTIME_DIR=/run/user/$(id -u usernic-user) $*
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ARCH=i386
|
ARCH=i386
|
||||||
|
Loading…
Reference in New Issue
Block a user