[Libosinfo] [libosinfo PATCH] tests: make the network tests run

Christophe Fergeau cfergeau at redhat.com
Wed Aug 2 10:34:01 UTC 2017


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

On Fri, Jul 14, 2017 at 01:02:19PM +0200, Pino Toscano wrote:
> Load the default osinfo path, since the osinfo data are no more part of
> the libosinfo sources.
> 
> The tests still fails though, but this is due to missing paths to ISOs
> and trees.
> ---
>  tests/test-mediauris.c | 2 +-
>  tests/test-treeuris.c  | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/test-mediauris.c b/tests/test-mediauris.c
> index 46a68f0..5bfb4c9 100644
> --- a/tests/test-mediauris.c
> +++ b/tests/test-mediauris.c
> @@ -80,7 +80,7 @@ START_TEST(test_uris)
>      fail_unless(OSINFO_IS_LOADER(loader), "Loader is not a LOADER");
>      fail_unless(OSINFO_IS_DB(db), "Db is not a DB");
>  
> -    osinfo_loader_process_path(loader, SRCDIR "/data", &error);
> +    osinfo_loader_process_default_path(loader, &error);
>      fail_unless(error == NULL, error ? error->message : "none");
>  
>      oslist = osinfo_db_get_os_list(db);
> diff --git a/tests/test-treeuris.c b/tests/test-treeuris.c
> index b5c50c6..60692bc 100644
> --- a/tests/test-treeuris.c
> +++ b/tests/test-treeuris.c
> @@ -80,7 +80,7 @@ START_TEST(test_uris)
>      fail_unless(OSINFO_IS_LOADER(loader), "Loader is not a LOADER");
>      fail_unless(OSINFO_IS_DB(db), "Db is not a DB");
>  
> -    osinfo_loader_process_path(loader, SRCDIR "/data", &error);
> +    osinfo_loader_process_default_path(loader, &error);
>      fail_unless(error == NULL, error ? error->message : "none");
>  
>      oslist = osinfo_db_get_os_list(db);
> -- 
> 2.9.4
> 
> _______________________________________________
> Libosinfo mailing list
> Libosinfo at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20170802/c225270e/attachment.sig>


More information about the Libosinfo mailing list