]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
snapshot: Fix tests/virsh-snapshot
authorEric Blake <eblake@redhat.com>
Fri, 26 Jul 2019 20:32:02 +0000 (15:32 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 26 Jul 2019 21:13:29 +0000 (16:13 -0500)
Creating an 'exp' output file, but never comparing it against the
actual output, does not actually constitute testing the output. :)

Fixes: 280a2b41e
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/virsh-snapshot

index b23d949f620afc294805827702c0095fe700166e..1034140cde1a1aba955969e73031666e2de1fc61 100755 (executable)
@@ -207,6 +207,8 @@ Descendants:    0
 Metadata:       yes
 
 EOF
+sed '1,/^virsh #/d; /virsh #/d' < out > out.cooked || fail=1
+compare exp out.cooked || fail=1
 
 cat <<EOF > exp || fail=1
 error: invalid argument: parent s3 for moment s2 not found