From patchwork Wed Jun 19 19:40:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 167266 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1140802ilk; Wed, 19 Jun 2019 12:59:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqys7uMbsThO6cwUPHtp4PUqDgdoiZuBIZAxmsU0dNq0ftwtBNy3vsHr5YNBxpGp+1T9aVNy X-Received: by 2002:aa7:c14f:: with SMTP id r15mr69368897edp.116.1560974384789; Wed, 19 Jun 2019 12:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560974384; cv=none; d=google.com; s=arc-20160816; b=OmGJRw/x5nHEqdi+JuJvCrAsGWVOEF/Qvz7nw49GLdiIrZ4rFeCnVzrqguroL+TKAt mZ2iohq9nW574LXxs650E0efsbIP+KcfnU2gFC9QH8XyViTDjjjo00WheQDdtD8XF0aN zRgV80zXyngekCS6suBxKR4HNdqxSr/294mPkg66sMcqBYs7frCiZNQSLMV1MSXyI5Vx RC7KeLsMOVBVrecYVSffUbqcUqprujlVi0WOqI7Sl9chi6rMIv4UfcAu5KX6wFmImSs3 DQXBw+4BLtPvF8siJ8mWg3/57CEpR7uk7kIXpaR78oL19G/yAyUByKg+1h01ARr/NTPT IUBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=onoeKhH8i7/jHDfnhI6V24OKwHYPamArShy5EWC2B6w=; b=CFSC9DUzVWlpZeKJPYyyIQhTIXda/qVpJTUg0wjFHR4Q2xP0vpVRxeWgYTmWAgWEzU Gis9s82Ay2bLsNnCu8bVqpMJ+NABQF3jJGvN6/Acgw08zni1FOS9S+/Lh/3uPk8bD21o FNZfZb9LfoIa2qZY7ojrssXlyQRNsGiDZuj3ENxv1pyMEJCxO6/c6CORoCW6i28cYkTr tau/2JIuXhkUcETlNQk3lzCAj/paiqtu9QSV9EV/0jI2REs3jEql3uLtMjQSXS60x/NF mRGBsfD631JGo34KbeJcR3hqzrN9/b2KycEMom/mjOJgOUhujhfQiMvPXkOnQm7mlpMF adUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bPLYOztD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r1si14579307edd.129.2019.06.19.12.59.44 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 19 Jun 2019 12:59:44 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bPLYOztD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdgkB-0005vq-Q9 for patch@linaro.org; Wed, 19 Jun 2019 15:59:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55966) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdgYo-0003v4-4w for qemu-devel@nongnu.org; Wed, 19 Jun 2019 15:48:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdgYk-00065D-BO for qemu-devel@nongnu.org; Wed, 19 Jun 2019 15:47:55 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:35640) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hdgYi-0005bC-C7 for qemu-devel@nongnu.org; Wed, 19 Jun 2019 15:47:52 -0400 Received: by mail-wr1-x435.google.com with SMTP id m3so534237wrv.2 for ; Wed, 19 Jun 2019 12:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=onoeKhH8i7/jHDfnhI6V24OKwHYPamArShy5EWC2B6w=; b=bPLYOztDZhjrRxVwKgFe5togLrKirPuJkAAU9VtDd3RNium9uKaD3Exmu1IZXJZgd8 AXqvng71GAQh1hD6LLMEJgNL2dLMY3NrKkwmzyflPzsE33FM8tyrhRX/L4qi82+YI9UN TkPCuzftqXfoCLPXler9X0GGLGWADYeWGiHN5Lr4DD8JxSXC64v0iCXI3ILgUgqLbpcB LfBUhKX+P70E3eTASlWga+g1KVnpT8jXbh+E86GSDfO24SgrZh7gG59VXTyqQi0grKc+ Cami+ocTN32GmC/8r908V/5LB7+kF1hNR9MlCMzDvUhORdHJOj5I9d9XZSuRLOV+HyUD qVBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=onoeKhH8i7/jHDfnhI6V24OKwHYPamArShy5EWC2B6w=; b=jUzx4MpOIgDwG00NYiYbLY4EYxd02nEVQROOwmfOwsFYW66/LDPJ+7IMaHMhbWQQXa Al9kCuxdYeicgoQgeiq2/F0Mpp15eP+597gtLHgmfqTdcpxfxcOCFyTjevzbjgIsRgf8 D/xdeAYJx7cemqm/QkJYM26/H7QuQvLUlFP1HQ9Dlh6GdpVFR7/530uCzuDm9Xm/204o 231qD9WJGmPMWY4/VhO9U6N59i95N2PeHV9TTXWPDEtzyhe/bkOM2V2L8am0ujMi9FPf UfeAw3L81pdqz5cIbiwMrQVY2fEm9IkzPrPyPuNVdeGfD5bd8SDf1fiR/o1lF+ALFDUJ tCUQ== X-Gm-Message-State: APjAAAU8OdY/dSJlEVGRY+4xdf6fqXtsVfzcoQAn5Jt9d1a/8f4t1nqB sr/8vNDLtTJuD681gO5gSkea4A== X-Received: by 2002:adf:da47:: with SMTP id r7mr44177wrl.56.1560973639809; Wed, 19 Jun 2019 12:47:19 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id n14sm16674768wra.75.2019.06.19.12.47.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 12:47:18 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AEB0A1FF9E; Wed, 19 Jun 2019 20:40:22 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Wed, 19 Jun 2019 20:40:19 +0100 Message-Id: <20190619194021.8240-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190619194021.8240-1-alex.bennee@linaro.org> References: <20190619194021.8240-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::435 Subject: [Qemu-devel] [PATCH v1 15/17] tests/vm: ubuntu.i386: apt proxy setup X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Gerd Hoffmann Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Gerd Hoffmann Configure apt proxy so package downloads can be cached and can pass firewalls. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20190617043858.8290-12-kraxel@redhat.com> --- tests/vm/ubuntu.i386 | 4 ++++ 1 file changed, 4 insertions(+) -- 2.20.1 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",