]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests/qemuxml2argvtest: remove unnecessary machine canonicalization
authorPavel Hrdina <phrdina@redhat.com>
Mon, 19 Dec 2016 21:52:08 +0000 (22:52 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 11 Apr 2017 12:06:47 +0000 (14:06 +0200)
This is not required to run our tests.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
tests/qemuxml2argvdata/qemuxml2argv-cputune-numatune.args
tests/qemuxml2argvdata/qemuxml2argv-machine-aliases1.args
tests/qemuxml2argvtest.c

index 90c2555ce1616ba8f93467e0d70fd044c5858156..eacf9c224f263d9f047f082b4dbf0d4c57952e21 100644 (file)
@@ -7,7 +7,7 @@ QEMU_AUDIO_DRV=none \
 /usr/bin/qemu-system-x86_64 \
 -name dummy2 \
 -S \
--M pc-0.11 \
+-M pc \
 -m 128 \
 -smp 2,maxcpus=6,sockets=6,cores=1,threads=1 \
 -object iothread,id=iothread1 \
index 5e2d0c063367f1b78ca133dd4a80d444a9c4ed66..78d95391379c16fd38440a4448191702a3dec84d 100644 (file)
@@ -7,7 +7,7 @@ QEMU_AUDIO_DRV=none \
 /usr/bin/qemu-system-x86_64 \
 -name QEMUGuest1 \
 -S \
--M pc-0.11 \
+-M pc \
 -m 214 \
 -smp 1,sockets=1,cores=1,threads=1 \
 -uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
index 0b26cd5c7c48803f787f171da644bd9e69893e1b..18ff5ad147e6041343a35fe364c30bfe841f46f1 100644 (file)
@@ -474,13 +474,6 @@ testCompareXMLToArgv(const void *data)
     if (qemuProcessPrepareMonitorChr(&monitor_chr, priv->libDir) < 0)
         goto cleanup;
 
-    if (STREQ(vm->def->os.machine, "pc") &&
-        STREQ(vm->def->emulator, "/usr/bin/qemu-system-x86_64")) {
-        VIR_FREE(vm->def->os.machine);
-        if (VIR_STRDUP(vm->def->os.machine, "pc-0.11") < 0)
-            goto cleanup;
-    }
-
     if (testUpdateQEMUCaps(info, vm, driver.caps) < 0)
         goto cleanup;