[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 15/19] tests/vm: ubuntu.i386: apt proxy setup
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PULL 15/19] tests/vm: ubuntu.i386: apt proxy setup |
Date: |
Mon, 24 Jun 2019 14:43:33 +0100 |
From: Gerd Hoffmann <address@hidden>
Configure apt proxy so package downloads
can be cached and can pass firewalls.
Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386
index 3ea459ee20..38f740eabf 100755
--- a/tests/vm/ubuntu.i386
+++ b/tests/vm/ubuntu.i386
@@ -51,6 +51,10 @@ class UbuntuX86VM(basevm.BaseVM):
" ssh-authorized-keys:\n",
" - %s\n" % basevm.SSH_PUB_KEY,
"locale: en_US.UTF-8\n"])
+ proxy = os.environ.get("http_proxy")
+ if not proxy is None:
+ udata.writelines(["apt:\n",
+ " proxy: %s" % proxy])
udata.close()
subprocess.check_call(["genisoimage", "-output", "cloud-init.iso",
"-volid", "cidata", "-joliet", "-rock",
--
2.20.1
- [Qemu-devel] [PULL 18/19] Makefile: Rename the 'vm-test' target as 'vm-help', (continued)
- [Qemu-devel] [PULL 18/19] Makefile: Rename the 'vm-test' target as 'vm-help', Alex Bennée, 2019/06/24
- [Qemu-devel] [PULL 01/19] tests/vm: avoid extra compressed image copy, Alex Bennée, 2019/06/24
- [Qemu-devel] [PULL 07/19] tests/vm: run test builds on snapshot, Alex Bennée, 2019/06/24
- [Qemu-devel] [PULL 12/19] tests/vm: freebsd autoinstall, using serial console, Alex Bennée, 2019/06/24
- [Qemu-devel] [PULL 09/19] tests/vm: add vm-boot-{ssh, serial}-<guest> targets, Alex Bennée, 2019/06/24
- [Qemu-devel] [PULL 17/19] .travis.yml: force a brew update for MacOS builds, Alex Bennée, 2019/06/24
- [Qemu-devel] [PULL 02/19] tests/vm: avoid image presence check and removal, Alex Bennée, 2019/06/24
- [Qemu-devel] [PULL 14/19] tests/vm: fedora autoinstall, using serial console, Alex Bennée, 2019/06/24
- [Qemu-devel] [PULL 16/19] .travis.yml: default the --disable-system build to --static, Alex Bennée, 2019/06/24
- [Qemu-devel] [PULL 13/19] tests/vm: netbsd autoinstall, using serial console, Alex Bennée, 2019/06/24
- [Qemu-devel] [PULL 15/19] tests/vm: ubuntu.i386: apt proxy setup,
Alex Bennée <=