image-fuzzer: Reduce number of generator functions in __init__
authorMaria Kustova <maxa@catit.be>
Mon, 11 Aug 2014 11:27:46 +0000 (15:27 +0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Aug 2014 17:03:14 +0000 (18:03 +0100)
commit94c83a24c1956cd50ab979725a730f7d8649ac15
tree4754cdc8f0a3b26e92b4c5a36a42140860fdc835
parent38eb193b8b14844a5d5ef65b54a4926e931ac311
image-fuzzer: Reduce number of generator functions in __init__

Some issues can be found only when a fuzzed image has a partial structure,
e.g. has L1/L2 tables but no refcount ones. Generation of an entirely
defined image limits these cases. Now the Image constructor creates only
a header and a backing file name (if any), other image elements are generated
in the 'create_image' API.

Signed-off-by: Maria Kustova <maria.k@catit.be>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/image-fuzzer/qcow2/layout.py