From patchwork Mon Jun 24 13:43:33 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: 167585 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4263022ilk; Mon, 24 Jun 2019 06:56:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8+mV+A6TiOh5HdnA7Qo1tlCMoQphQy+R2i8H2JkQU8l8ArdvjaVrYCsYLZfr3CAneQv+q X-Received: by 2002:a50:ba28:: with SMTP id g37mr143152606edc.109.1561384589534; Mon, 24 Jun 2019 06:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561384589; cv=none; d=google.com; s=arc-20160816; b=U580lZwN0Ws9QBV+/5HFxYovVI8+F7OLBGbawm1J/8WgybKAapYIffqslfGu43zTOn vufxb7FgjJW0quVTJod59xp9yRe+/tX2Dlq3whXHm4x2owTODEHYHGYmLuttIA/nWuN6 SDLyn3OZwmrWIKm1x1vdgvglTkAH5Zg4Jm7T17dvXPcJRlzgyh+X7bfHZ7E8mIkw5hYN 44RBt1LIDb32EwUMgEl3rfg1hGybfn6I1cIMeC18QhEO9TkLLU9J2IC2kGF8dWWcH6eP KQnyRyNRvqfnrBy+f8K1fGXlsE5Jv7/4aN+R4mVvNrqZaldf7ZyzfN6jRmS2y9OpBVD0 a5Aw== 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=JwqqKvF7VNQMlcY7yI6rqE4GBREhj+ZNU7fBJq4Qxvs=; b=PFEzJcgSJDvl+4f0S5O0bNQFpO3Un4IEoaD90igoVdaRRHtswphavD4RZ41xvy2ert FxS5w6H4ZC1PLrMFyh1lePi1So9F2JSs/TcvLb6K9miwF0yI0tEcMuhZXX+Zg179B9DI TPDZsWfA73e/ajXPQjNz0Eop3LT+lEnWxwwEzb0fE7d5PxZAktkLIfNja8gZJ5ZvNFjX 8+8qYCBHM0SS/XnYwxHVbD1KAcxMkkUYCex5YWRzp4UEf4ryxTs9l4koYPN5yL/eB1Pl I+OwNbgohQCXD0idurI9dyT1PtBteGPJMoGoZHDHHZoUOSnTisGdRcnjuJUw8Lzdcwcm jXoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="Lbx1R/JX"; 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 z19si7226222ejm.26.2019.06.24.06.56.29 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jun 2019 06:56:29 -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="Lbx1R/JX"; 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]:51378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfPSO-0001Pc-Fw for patch@linaro.org; Mon, 24 Jun 2019 09:56:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43887) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfPP4-00060h-R5 for qemu-devel@nongnu.org; Mon, 24 Jun 2019 09:53:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfPP2-0001D9-Pq for qemu-devel@nongnu.org; Mon, 24 Jun 2019 09:53:02 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:38466) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfPP2-0001BS-Ip for qemu-devel@nongnu.org; Mon, 24 Jun 2019 09:53:00 -0400 Received: by mail-wr1-x42f.google.com with SMTP id d18so14029032wrs.5 for ; Mon, 24 Jun 2019 06:52:59 -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=JwqqKvF7VNQMlcY7yI6rqE4GBREhj+ZNU7fBJq4Qxvs=; b=Lbx1R/JXUSM1xqCRYKx1MCR01V06vnc/y53HX9FR1Kn2iAx5U6+oCAAO5orQLAkWrw 0oVysE0RE2gNIr+EhwmRfSc7c3LQfjxDk1RfReNxUChd+cax1vVD1b67Es2D4EXQ8rDG DoIZ9uRaKMrmDJk2zm0V4q19XXkhgyZwv2TBf4QCoN5AbUPFHa3idjAoiZN3Kpr9+JBq c1xYObhnH0v9KBlF6q7favZGRrHh/8XETfnsME6LJtlCSsIptmR/05Pq4ODSRIIbsIBw pS0Dh0PXbY95tuX/18+wTGcXNJ6xyL7eJcA0d02Y0SL5bEN+Uk/lpJitUyI3h2Bydoqa MsGQ== 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=JwqqKvF7VNQMlcY7yI6rqE4GBREhj+ZNU7fBJq4Qxvs=; b=No4dbSqYjmj8XNWPE5Ko11LLn8qSn+TtgtSwY04vxxDT6dRkVLE5nThbJE9CG68YZP fZvZCjJ33UROzxNMDyWGQTrJWsNolr5JcKYUOVlDP+UfPgWp9CYSUWdf71rk90g54dV4 zfFVC4bOTrfxYrVEB4miL/CLSrp5+tTREv48YbnKqfKHJtGOJLhGJK7MoHk5V4lcqb46 f06kygQmYv8B+n1cRpyCYRojGI25s9tO+M3oa6WglsvAM9xQWgro1NP5H2kVywBbGxY0 pLaPyxj2yP6AbT9O9pHXyUyHjhaXTauxom8v5NSOCcmm8EV6ClqdJZrkMEAbdEbodVIZ ujsw== X-Gm-Message-State: APjAAAVACL6ONHM3jYl4vwcbhezUpUfaPU3H8SPMkjVoIoEuu+KnyKJm uHcd2w/bH28rfJA4yAWaNL9WnA== X-Received: by 2002:a5d:540e:: with SMTP id g14mr36912099wrv.346.1561384378583; Mon, 24 Jun 2019 06:52:58 -0700 (PDT) Received: from zen.linaroharston ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id g131sm8401807wmf.37.2019.06.24.06.52.56 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 24 Jun 2019 06:52:56 -0700 (PDT) Received: from zen.linaroharston. (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C5CFD1FF9E; Mon, 24 Jun 2019 14:43:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Mon, 24 Jun 2019 14:43:33 +0100 Message-Id: <20190624134337.10532-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190624134337.10532-1-alex.bennee@linaro.org> References: <20190624134337.10532-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::42f Subject: [Qemu-devel] [PULL 15/19] 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: <20190617043858.8290-12-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 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",