summaryrefslogtreecommitdiffstats
path: root/tests/vm
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2018-10-13 02:40:28 +0200
committerFam Zheng2018-10-26 16:03:21 +0200
commit071cf5a4205a1fe7a33f61477e5f73f86cd2f9fe (patch)
tree3ba0f7c866622988a1b14338a6778253cd057413 /tests/vm
parenttests/vm: Do not abuse parallelism when KVM is not available (diff)
downloadqemu-071cf5a4205a1fe7a33f61477e5f73f86cd2f9fe.tar.gz
qemu-071cf5a4205a1fe7a33f61477e5f73f86cd2f9fe.tar.xz
qemu-071cf5a4205a1fe7a33f61477e5f73f86cd2f9fe.zip
tests/vm: Do not use the -smp option with a single cpu
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20181013004034.6968-4-f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'tests/vm')
-rwxr-xr-xtests/vm/basevm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index 2bd32dc6ce..9415e7c33a 100755
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -70,7 +70,7 @@ class BaseVM(object):
"-device", "virtio-net-pci,netdev=vnet",
"-vnc", "127.0.0.1:0,to=20",
"-serial", "file:%s" % os.path.join(self._tmpdir, "serial.out")]
- if vcpus:
+ if vcpus and vcpus > 1:
self._args += ["-smp", str(vcpus)]
if kvm_available():
self._args += ["-enable-kvm"]