summaryrefslogtreecommitdiff
path: root/tests/nodedevxml2xmlout/computer.xml
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2021-05-14 16:28:58 -0500
committerMichal Privoznik <mprivozn@redhat.com>2021-05-20 10:59:45 +0200
commit86ecc06c068fadb3c681a502b82cbcb8a334f194 (patch)
tree36dadff16c2c378584ed8b473bf6597aa389bef0 /tests/nodedevxml2xmlout/computer.xml
parent0ad0204ce7f7b512ee349dfbf5cdd751ab0adc1c (diff)
downloadlibvirt-86ecc06c068fadb3c681a502b82cbcb8a334f194.tar.gz
test: move nodedev xml2xml output to a separate dir
Currently, we're loading and parsing the xml from the input file, and then formatting it and then comparing it directly back to the input file. This works for now, but is severely limiting as it relies on the input file being fully-specified and in the exact order as the output xml format. If optional elements are ommitted in the input XML, the output xml may include default values for the ommitted elements and thus the output will not match the input. In order to allow more flexibility in testing, save the expected output to a seprate 'out' directory similar to what most of the other xml2xml tests are already doing. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'tests/nodedevxml2xmlout/computer.xml')
l---------tests/nodedevxml2xmlout/computer.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/nodedevxml2xmlout/computer.xml b/tests/nodedevxml2xmlout/computer.xml
new file mode 120000
index 0000000000..fe419c2315
--- /dev/null
+++ b/tests/nodedevxml2xmlout/computer.xml
@@ -0,0 +1 @@
+../nodedevschemadata/computer.xml \ No newline at end of file