diff --git a/tests/read-bufsiz b/tests/read-bufsiz
index 2a91bcf5b25dcd0e90f85b08d710a7ba2bfb267e..a4c6007653e7fc7fd997e56a2d73625d572aeb2b 100755
--- a/tests/read-bufsiz
+++ b/tests/read-bufsiz
@@ -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|test|newtest|g" xml.t > xml
+# Change the VM name and UUID
+sed -e "s|test|newtest|g" \
+ -e "\|.*|d" \
+ xml.t > xml
for i in before after; do
# The largest BUFSIZ I've seen is 128K. This is slightly larger.