summaryrefslogtreecommitdiff
path: root/yarns/900-implements.yarn
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2016-07-17 16:42:20 +0100
committerNeil Williams <codehelp@debian.org>2016-07-17 16:42:20 +0100
commit1e2e196ee9d07c53a039f72994ab70dd562b0a91 (patch)
treed4a1e8da0340224aed3724e447a1266ce959cf16 /yarns/900-implements.yarn
parent88d8b498b9fa2fe99d86612454eea20533744dc6 (diff)
downloadvmdebootstrap-1e2e196ee9d07c53a039f72994ab70dd562b0a91.tar.gz
Handle conversion to qcow2 after umounting
Add unit test support for checking the file format.
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r--yarns/900-implements.yarn7
1 files changed, 7 insertions, 0 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index a629dc9..860d649 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -135,3 +135,10 @@ regular expression.
mount -r "$device" "$mp"
trap "umount \"$mp\"; unkpartx_image \"$IMAGE\"" EXIT
grep -P -e "$MATCH_3" "$mp/$MATCH_2"
+
+Check the image output format
+
+ IMPLEMENTS THEN image has file format matching (.+)
+ qemu-img info $IMAGE |
+ grep "file format" |
+ grep $MATCH_1