mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
tests: Update read-bufsiz to delete the UUID of vm XML
Since now we have fixed domain UUID for test driver, defining a domain with different name but same UUID doesn't work any more. This patch delete the UUID from the dumped XML so that it could be generated.
This commit is contained in:
parent
4010217e73
commit
79568df0f1
@ -32,8 +32,10 @@ fail=0
|
||||
# Output a valid definition, to be used as input.
|
||||
$abs_top_builddir/tools/virsh -c test:///default dumpxml 1 > xml.t || fail=1
|
||||
|
||||
# Change the VM name
|
||||
sed -e "s|<name>test</name>|<name>newtest</name>|g" xml.t > xml
|
||||
# Change the VM name and UUID
|
||||
sed -e "s|<name>test</name>|<name>newtest</name>|g" \
|
||||
-e "\|<uuid>.*</uuid>|d" \
|
||||
xml.t > xml
|
||||
|
||||
for i in before after; do
|
||||
# The largest BUFSIZ I've seen is 128K. This is slightly larger.
|
||||
|
Loading…
Reference in New Issue
Block a user