From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6224BCA9EA0 for ; Fri, 25 Oct 2019 20:01:57 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B37420684 for ; Fri, 25 Oct 2019 20:01:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Db+xTT4y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B37420684 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:35718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO5mV-00047b-9o for qemu-devel@archiver.kernel.org; Fri, 25 Oct 2019 16:01:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57813) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iO5Oi-0008Fl-Cf for qemu-devel@nongnu.org; Fri, 25 Oct 2019 15:37:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iO5Og-00038f-Lk for qemu-devel@nongnu.org; Fri, 25 Oct 2019 15:37:19 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:37644) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iO5Og-00037w-Fg for qemu-devel@nongnu.org; Fri, 25 Oct 2019 15:37:18 -0400 Received: by mail-wm1-x330.google.com with SMTP id q130so3169598wme.2 for ; Fri, 25 Oct 2019 12:37:18 -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=nM9J2cmbyGFwjMjK+CMae4AlsIxqtsY1sLspbcwHaoY=; b=Db+xTT4yY2eOactcJaKleahmhyHRLxLwyx2+/iW8b4DilZtsgD+DzRcfI4UAoqSjAx eS/6w6XmOWBxPIb6yrNNKGcB6gryMBfx/izfGf5A23ZZBMuythINzNJQBDKo/4hcKJAs NkPOsaIW3r7EhxjI637d1so+7CltUIugwiDycMz6Hdwp+g6ppo0Oc3ZmwSPAbnbSBDFN 7PmOUOsDwXFFk6nTkE6eH18Ondsg6bxODkh74/VHKVCPTX8MASH2CV0Z5GjSVZ9kN/zw j4o8cCbwNtDBEPTCM7FXcG5S2GQJJislRbm5Z5HwEl8kZckIiCy7Vh1mG5hKyde+K597 o8TQ== 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=nM9J2cmbyGFwjMjK+CMae4AlsIxqtsY1sLspbcwHaoY=; b=CXbJAxV23pX5Azw5jCRlGYf9cdXjsrJtQPk62mi1CQCWnKJYuPgAr6DXAozOQb0UJC JjoGTIIMNNDpDSvKvO1g4wPmfL/EVFJaA/CTuFtkJZfgLKax8w6rcenEfx3jU2n90bJ7 n9vTBCiDbipcBE7QGqGI2EVxWLyAusm2J2v7Y2De54iCNUwYaK1VnKk/9Z+CvvUI2Sga MQWvUZt4uETNy2skvcN2g+PPii+t61F3M0n2cX877HdLWnoZchwZR54O5FNQ96tT67m7 iUvdbB4thzwDAmoAYFemehtGpfGnsU+uDtyD9E/uPY0NlEmuXLsgBdCj9fdUrDAcc0FU TFcg== X-Gm-Message-State: APjAAAVMSUVaaRKtsxAwZtoG01yOanpTG8qTgAD+kF/jaLRrQbqKFk4p FjCfJmx+4C8k5AeBrpHrWb2bVg== X-Google-Smtp-Source: APXvYqxsYvTmcT1A7PI4ZUFFragw6Ptkcg0vVuQc/bhb3bR/OTnN7BLSdomeXAYxbRrtqmS7n+5Neg== X-Received: by 2002:a05:600c:1051:: with SMTP id 17mr5119287wmx.149.1572032237304; Fri, 25 Oct 2019 12:37:17 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id a2sm3329837wrv.39.2019.10.25.12.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 12:37:13 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3FD741FF99; Fri, 25 Oct 2019 20:37:10 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL v3 09/15] tests/vm: Let subclasses disable IPv6 Date: Fri, 25 Oct 2019 20:37:03 +0100 Message-Id: <20191025193709.28783-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191025193709.28783-1-alex.bennee@linaro.org> References: <20191025193709.28783-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::330 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 , Thomas Huth , Eduardo Habkost , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Eduardo Habkost The mechanism will be used to work around issues related to IPv6 on the netbsd image builder. Signed-off-by: Eduardo Habkost Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20191018181705.17957-3-ehabkost@redhat.com> Signed-off-by: Alex Bennée diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index b5d1479bee9..2929de23aa7 100755 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -57,6 +57,8 @@ class BaseVM(object): arch = "#arch" # command to halt the guest, can be overridden by subclasses poweroff = "poweroff" + # enable IPv6 networking + ipv6 = True def __init__(self, debug=False, vcpus=None): self._guest = None self._tmpdir = os.path.realpath(tempfile.mkdtemp(prefix="vm-test-", @@ -81,7 +83,8 @@ class BaseVM(object): self._args = [ \ "-nodefaults", "-m", "4G", "-cpu", "max", - "-netdev", "user,id=vnet,hostfwd=:127.0.0.1:0-:22", + "-netdev", "user,id=vnet,hostfwd=:127.0.0.1:0-:22" + + (",ipv6=no" if not self.ipv6 else ""), "-device", "virtio-net-pci,netdev=vnet", "-vnc", "127.0.0.1:0,to=20"] if vcpus and vcpus > 1: -- 2.20.1