[libosinfo PATCH] tests: make the network tests run

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux