snapshot: Fix tests/virsh-snapshot

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>
This commit is contained in:
Eric Blake 2019-07-26 15:32:02 -05:00
parent 1fd28a2e79
commit 0dbfc3965c

View File

@ -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