Skip to content

Commit 47cb6f0

Browse files
committed
qemu: Disable network tests by default
The network tests fail more often than they work, depending on having the right network driver in the kernel, slirp working etc. So disable them by default.
1 parent eb0a27f commit 47cb6f0

11 files changed

Lines changed: 5 additions & 9 deletions

File tree

lib/qemu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, machine):
2323
self.logpath = 'console.log'
2424
self.quiet = False
2525
self.net = None
26-
self.net_tests = True
26+
self.net_tests = False
2727
self.host_command = 'run'
2828
self.gdb = None
2929
self.interactive = False
@@ -55,7 +55,7 @@ def configure_from_env(self):
5555
self.pexpect_timeout = int(get_env_var('QEMU_PEXPECT_TIMEOUT', self.pexpect_timeout))
5656
self.logpath = get_env_var('QEMU_CONSOLE_LOG', self.logpath)
5757
self.quiet = get_env_var('QEMU_QUIET', self.quiet)
58-
self.net_tests = get_env_var('QEMU_NET_TESTS', self.net_tests) != '0'
58+
self.net_tests = get_env_var('QEMU_NET_TESTS', self.net_tests) == '1'
5959
self.host_command = get_env_var('QEMU_HOST_COMMAND', self.host_command)
6060
self.expected_release = get_expected_release()
6161
self.vmlinux = get_vmlinux()

scripts/boot/qemu-44x

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def main():
2828
qconf = QemuConfig('bamboo')
2929
qconf.configure_from_env()
3030
qconf.configure_from_args(sys.argv[1:])
31-
qconf.net_tests = False
3231
qconf.smp = 1
3332

3433
def shutdown(p):

scripts/boot/qemu-e500mc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def main():
3636
qconf.configure_from_env()
3737
qconf.configure_from_args(sys.argv[1:])
3838
qconf.qemu_path = 'qemu-system-ppc'
39-
qconf.net_tests = False
4039
qconf.mem = '2G'
4140
qconf.smp = 1
4241
qconf.cpu = 'e500mc'

scripts/boot/qemu-g5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def main():
3131
setup_logging()
3232

3333
qconf = QemuConfig('mac99')
34+
qconf.net_tests = True
3435
qconf.configure_from_env()
3536
qconf.configure_from_args(sys.argv[1:])
3637
qconf.machine_caps += ['via=pmu']

scripts/boot/qemu-powernv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def main():
3030
setup_logging()
3131

3232
qconf = QemuConfig('powernv')
33+
qconf.net_tests = True
3334
qconf.configure_from_env()
3435
qconf.configure_from_args(sys.argv[1:])
3536
qconf.apply_defaults()

scripts/boot/qemu-ppc64e

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def main():
4040
qconf.configure_from_env()
4141
qconf.configure_from_args(sys.argv[1:])
4242
qconf.qemu_path = 'qemu-system-ppc64'
43-
qconf.net_tests = False
4443
qconf.mem = '4G'
4544
qconf.smp = 2
4645

scripts/boot/qemu-pseries

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def main():
2929
setup_logging()
3030

3131
qconf = QemuConfig('pseries')
32+
qconf.net_tests = True
3233
qconf.configure_from_env()
3334
qconf.configure_from_args(sys.argv[1:])
3435
qconf.apply_defaults()

scripts/test/qemu-cpu-hotplug

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ from pexpect_utils import xmon_enter, xmon_exit
1414
def test(name, cpu, machine):
1515
qconf = QemuConfig(machine)
1616
qconf.configure_from_env()
17-
qconf.net_tests = False
1817
qconf.smp = 2
1918
qconf.cpu = cpu
2019
qconf.host_mounts = []

scripts/test/qemu-lkdtm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ triggers = ['BUG', 'WARNING', 'WARNING_MESSAGE', 'EXCEPTION', 'ARRAY_BOUNDS',
3434
def test(name, cpu, machine):
3535
qconf = QemuConfig(machine)
3636
qconf.configure_from_env()
37-
qconf.net_tests = False
3837
qconf.mem = '2G'
3938
qconf.cpu = cpu
4039
qconf.accel = kvm_or_tcg(machine, cpu)

scripts/test/qemu-ptdump

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ from dump import read_symbols, find_symbol
1515
def test(name, cpu, machine):
1616
qconf = QemuConfig(machine)
1717
qconf.configure_from_env()
18-
qconf.net_tests = False
1918
qconf.mem = '2G'
2019
qconf.smp = 1
2120
qconf.cpu = cpu

0 commit comments

Comments
 (0)