Fix boot device tests

This commit is contained in:
Daniel P. Berrange 2007-06-07 14:08:35 +00:00
parent a80faa4bf0
commit de288e8dbc
4 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
Thu Jun 7 15:48:30 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/xm_internal.c: Fix boot device XML -> config conversion
* test/xmconfigdata/test-fullvirt-new-cdrom.xml,
test/xmconfigdata/test-fullvirt-old-cdrom.xml fix syntax for
boot device
Thu Jun 7 15:48:30 CEST 2007 Daniel Veillard <veillard@redhat.com> Thu Jun 7 15:48:30 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/xend_internal.c src/xm_internal.c src/xml.c: add support * src/xend_internal.c src/xm_internal.c src/xml.c: add support

View File

@ -1800,7 +1800,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
"cannot set the os loader parameter") < 0) "cannot set the os loader parameter") < 0)
goto error; goto error;
obj = xmlXPathEval(BAD_CAST "string(/domain/os/boot)", ctxt); obj = xmlXPathEval(BAD_CAST "string(/domain/os/boot/@dev)", ctxt);
if ((obj != NULL) && (obj->type == XPATH_STRING) && if ((obj != NULL) && (obj->type == XPATH_STRING) &&
(obj->stringval != NULL)) { (obj->stringval != NULL)) {
if (!strcmp((const char*)obj->stringval, "fd")) if (!strcmp((const char*)obj->stringval, "fd"))

View File

@ -4,7 +4,7 @@
<os> <os>
<type>hvm</type> <type>hvm</type>
<loader>/usr/lib/xen/boot/hvmloader</loader> <loader>/usr/lib/xen/boot/hvmloader</loader>
<boot>cdrom</boot> <boot dev='cdrom'/>
</os> </os>
<currentMemory>403456</currentMemory> <currentMemory>403456</currentMemory>
<memory>592896</memory> <memory>592896</memory>

View File

@ -4,7 +4,7 @@
<os> <os>
<type>hvm</type> <type>hvm</type>
<loader>/usr/lib/xen/boot/hvmloader</loader> <loader>/usr/lib/xen/boot/hvmloader</loader>
<boot>cdrom</boot> <boot dev='cdrom'/>
</os> </os>
<currentMemory>403456</currentMemory> <currentMemory>403456</currentMemory>
<memory>592896</memory> <memory>592896</memory>