[Libosinfo] [libosinfo] test-isodetect: Iterate over all isodata/ subdirs

Daniel P. Berrangé berrange at redhat.com
Mon Feb 19 13:06:13 UTC 2018


On Mon, Feb 19, 2018 at 10:12:10AM +0100, Christophe Fergeau wrote:
> When adding support for a new vendor, test-isodetect.c needs to be
> updated to list it, which is too easy to forget.
> This commit iterates over subdirs in tests/isodata/ and uses these as
> the vendors to test for. This means no further modification of
> test-isodetect.c is needed when adding a new vendor.
> 
> Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
> ---
>  tests/test-isodetect.c | 164 ++++++++++++++++---------------------------------
>  1 file changed, 52 insertions(+), 112 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the Libosinfo mailing list