From patchwork Fri Jun 7 09:05:24 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: 166113 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp428561ili; Fri, 7 Jun 2019 03:03:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzdJ47sCCvCcfBhCP+PQJCwRBkqMlf7TDRUJw6T1vMB5pNb4kaFkyxAiM5uItnf5re+dJD X-Received: by 2002:aed:33e6:: with SMTP id v93mr45656167qtd.157.1559901834251; Fri, 07 Jun 2019 03:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559901834; cv=none; d=google.com; s=arc-20160816; b=b5qhhrW5j3b85VI8oiV0udrBQ99mfcDJYCSqzkAb6gJ6zUd1IOFqsFOGn3L+/pOAMc r1AMZoDqu5VW8/WseS8wjrkjssKN8JgJrCjgYGBEWW5xmBDg56EY2Bn1oR86UEQ0SFEu 4npMHUTXK7yfsYp/rYeTZ4U+6XGzijLLEpUqhZgGdiHQ2HvNiwKcTCia9GU/SviDib4c l26pdgAxeYxn0kP76hcqU/qjLki7Q9AU/CuXyyucuPX6U0chKd7Bav3JKx6DJQT/7mWB aqj1nDUKa4o57dV9wknyZY0X/x1Paifc2dkhsWEN4bhZfJon4uvjP9cOcpMkCoWYs9+C 3G5g== 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=gTWlFdlFGB1B/zOTecn3xrnI8T6l9Vt1Y4CtKuUhYu8=; b=f7dQmqjU1FE532pwZS98vFul5JWEDrLvhxt90Shl2ZSxpw2NTQK0MnwuOlNi6rLSsJ oC2nGq6hOd7x0vVZ67ZZJlkweKFCmgJ6hNa6JyP5o+NcA9pDfsifXD8bUXt6XKaqi9Bq uZPv/OfxTGIVItC71lKIPhdHtGsbhgRw7xB/oBhVlgxeOhQQq6TW5qT5XAdzu0ZAo63W DAhCsRlCpvmmvCFat0h03jhxhUYIM/SXU1K4GO40ogU6+WyVqYAYJ6oTXKeG06zlPeNZ T+OQNVX0jbH5zbIo4NVUyvQQz/BjtWnZLSNPMLxWcfOlTBc3GRqiFCOACwjELLSf8wvc 5LXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SjBnzlGN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.47 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.47]) by mx.google.com with ESMTPS id v1si853536qkf.183.2019.06.07.03.03.54 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2019 03:03:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.47 as permitted sender) client-ip=209.51.188.47; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=SjBnzlGN; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.47 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]:47742 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZBiz-0002cA-PG for patch@linaro.org; Fri, 07 Jun 2019 06:03:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42205) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZAvT-0002Fc-BF for qemu-devel@nongnu.org; Fri, 07 Jun 2019 05:12:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZAvQ-0004zZ-Ta for qemu-devel@nongnu.org; Fri, 07 Jun 2019 05:12:43 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:54772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hZAvQ-0004sg-I6 for qemu-devel@nongnu.org; Fri, 07 Jun 2019 05:12:40 -0400 Received: by mail-wm1-x32a.google.com with SMTP id g135so1234190wme.4 for ; Fri, 07 Jun 2019 02:12:38 -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=gTWlFdlFGB1B/zOTecn3xrnI8T6l9Vt1Y4CtKuUhYu8=; b=SjBnzlGNuYbKNmdtwI+EtCHS2epNn9/bnTSOYbbiJrXuZ4r6YGWsjr3NiHIpSX9X+s 48+I3GTWU5lGNXW+fix8xHX917GJBe3DMRrKc/robCQLklm8B6dIy431i+f2TcwLU5GX KdurOgOybaHxPZYpzXu1kCKjSFdKa4Ui8Tx4DvAce3+sTNnOFvTT4V4yh3iwEubskUR3 elecGW7JGDH8+ZX4ECBwDLbmpCBkj3111TsC6nm7UnCSikm29OCLyox8jVfI/4gd7CLh rp5b4gPaAkJMVVmqWRj8D/YeaczqwxiqP1I+BvjbhYhRoFtofZZPivlP36L5W++uAgid zajA== 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=gTWlFdlFGB1B/zOTecn3xrnI8T6l9Vt1Y4CtKuUhYu8=; b=GGFuy1RYy7FzKi9R/mVp9L1nmSyplKH61AnWonURQxDBR1PZ4fYwVSMDEK7HA6s5dg spTyvEO5qgR1nmWQzPlswBCYVwV6Sq5kl9CTU69GHOtdf2hRmi2PkDMz/7yDXfGocVr7 Y2rrWWgvj/iu+Nfj3Vq77DlYRU5cyboETOAvAG7gN5zi4wboPjaGny5CKprLbCkF4uQl OLDMHuWdpXbnrWiInIYAsWP9Ac8jb8MOoob5FRSiOHcwFMV+ZvQ561aMvoygkvpPFRyG OVOAzSz4CRYe+0OQB5U3DZNZ8cLPoyEEmSU2HnhQSeV17kcaBwXCosedU0RWBVr4M9/+ pG2A== X-Gm-Message-State: APjAAAV0vW4NUisY4T7xvZfPHcOYg7DKw9D69jCKSYeEFW43RBNGssee qxsKNSwvZbxx8+9K/vIf/PFgmw== X-Received: by 2002:a1c:2bc7:: with SMTP id r190mr2801993wmr.174.1559898757664; Fri, 07 Jun 2019 02:12:37 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a3sm1198915wmb.35.2019.06.07.02.12.30 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 07 Jun 2019 02:12:34 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 07ADF1FFAE; Fri, 7 Jun 2019 10:05:54 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Fri, 7 Jun 2019 10:05:24 +0100 Message-Id: <20190607090552.12434-26-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190607090552.12434-1-alex.bennee@linaro.org> References: <20190607090552.12434-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::32a Subject: [Qemu-devel] [PULL 25/52] 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?= , qemu-devel@nongnu.org, 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: <20190520124716.30472-15-kraxel@redhat.com> Signed-off-by: Alex Bennée -- 2.20.1 diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386 index a22d137e76..b869afd212 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",