[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 10/73] tests/vm: Let subclasses disable IPv6
From: |
Alex Bennée |
Subject: |
[PULL v2 10/73] tests/vm: Let subclasses disable IPv6 |
Date: |
Fri, 25 Oct 2019 07:36:10 +0100 |
From: Eduardo Habkost <address@hidden>
The mechanism will be used to work around issues related to IPv6
on the netbsd image builder.
Signed-off-by: Eduardo Habkost <address@hidden>
Reviewed-by: Thomas Huth <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/basevm.py b/tests/vm/basevm.py
index 4921e47f9f2..59bd1d31fbe 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
- [PULL v2 00/73] tcg plugins and testing updates, Alex Bennée, 2019/10/25
- [PULL v2 02/73] travis.yml: Add libvdeplug-dev to compile-test net/vde.c, Alex Bennée, 2019/10/25
- [PULL v2 01/73] travis.yml: reduce scope of the --enable-debug build, Alex Bennée, 2019/10/25
- [PULL v2 04/73] travis.yml: Use newer version of libgnutls and libpng, Alex Bennée, 2019/10/25
- [PULL v2 06/73] travis.yml: Test the release tarball, Alex Bennée, 2019/10/25
- [PULL v2 03/73] travis.yml: Use libsdl2 instead of libsdl1.2, and install libsdl2-image, Alex Bennée, 2019/10/25
- [PULL v2 10/73] tests/vm: Let subclasses disable IPv6,
Alex Bennée <=
- [PULL v2 08/73] cirrus.yml: add latest Xcode build target, Alex Bennée, 2019/10/25
- [PULL v2 05/73] travis.yml: Fix the ccache lines, Alex Bennée, 2019/10/25
- [PULL v2 09/73] tests/vm: netbsd autoinstall, using serial console, Alex Bennée, 2019/10/25
- [PULL v2 53/73] plugin: add API symbols to qemu-plugins.symbols, Alex Bennée, 2019/10/25
- [PULL v2 54/73] plugin: expand the plugin_init function to include an info block, Alex Bennée, 2019/10/25
- [PULL v2 07/73] travis.yml: bump Xcode 10 to latest dot release, Alex Bennée, 2019/10/25
- [PULL v2 11/73] tests/vm/netbsd: Disable IPv6, Alex Bennée, 2019/10/25
- [PULL v2 13/73] gitlab-ci.yml: Use libvdeplug-dev to compile-test the VDE network backend, Alex Bennée, 2019/10/25
- [PULL v2 19/73] cpu: introduce cpu_in_exclusive_context(), Alex Bennée, 2019/10/25
- [PULL v2 56/73] plugin: add qemu_plugin_outs helper, Alex Bennée, 2019/10/25