From f6e3cfa538935c508e31fc7a12138d0805c02d9b Mon Sep 17 00:00:00 2001 From: Toshiki Sonoda Date: Wed, 7 Sep 2022 09:35:20 +0900 Subject: system tests: fix systemd tests in proxy environment Under proxy environment, we need to add proxy environment variables. Related to: #15639 Signed-off-by: Toshiki Sonoda --- test/system/250-systemd.bats | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats index dd1a0f05a..b449e49d8 100644 --- a/test/system/250-systemd.bats +++ b/test/system/250-systemd.bats @@ -33,7 +33,11 @@ function teardown() { # Helper to start a systemd service running a container function service_setup() { - run_podman generate systemd --new $cname + run_podman generate systemd \ + -e http_proxy -e HTTP_PROXY \ + -e https_proxy -e HTTPS_PROXY \ + -e no_proxy -e NO_PROXY \ + --new $cname echo "$output" > "$UNIT_FILE" run_podman rm $cname -- cgit v1.2.3-54-g00ecf