]> git.proxmox.com Git - mirror_qemu.git/blame - tests/avocado/pc_cpu_hotplug_props.py
python/qemu: rename command() to cmd()
[mirror_qemu.git] / tests / avocado / pc_cpu_hotplug_props.py
CommitLineData
fea374e7
EH
1#
2# Ensure CPU die-id can be omitted on -device
3#
4# Copyright (c) 2019 Red Hat Inc
5#
6# Author:
7# Eduardo Habkost <ehabkost@redhat.com>
8#
9# This library is free software; you can redistribute it and/or
10# modify it under the terms of the GNU Lesser General Public
11# License as published by the Free Software Foundation; either
6a2cd957 12# version 2.1 of the License, or (at your option) any later version.
fea374e7
EH
13#
14# This library is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17# Lesser General Public License for more details.
18#
19# You should have received a copy of the GNU Lesser General Public
20# License along with this library; if not, see <http://www.gnu.org/licenses/>.
21#
22
2283b627 23from avocado_qemu import QemuSystemTest
fea374e7 24
2283b627 25class OmittedCPUProps(QemuSystemTest):
fea374e7
EH
26 """
27 :avocado: tags=arch:x86_64
2d149759 28 :avocado: tags=cpu:qemu64
fea374e7
EH
29 """
30 def test_no_die_id(self):
31 self.vm.add_args('-nodefaults', '-S')
32 self.vm.add_args('-smp', '1,sockets=2,cores=2,threads=2,maxcpus=8')
fea374e7
EH
33 self.vm.add_args('-device', 'qemu64-x86_64-cpu,socket-id=1,core-id=0,thread-id=0')
34 self.vm.launch()
684750ab 35 self.assertEquals(len(self.vm.cmd('query-cpus-fast')), 2)