[gnome-software] trivial: Fix 'make check' when run in a fresh checkout



commit ee1bf8e922d2372f42479969da14f1539f076e02
Author: Richard Hughes <richard hughsie com>
Date:   Thu May 19 10:22:53 2016 +0100

    trivial: Fix 'make check' when run in a fresh checkout
    
    We are not checking in the flatpak binary repo, and so it's not available in
    the tarball.

 src/gs-self-test.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-self-test.c b/src/gs-self-test.c
index 8062d2c..438d132 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -652,7 +652,8 @@ gs_plugin_loader_flatpak_func (GsPluginLoader *plugin_loader)
        /* add a remote */
        app_source = gs_app_new ("test");
        testdir = gs_test_get_filename ("tests/flatpak");
-       g_assert (testdir != NULL);
+       if (testdir == NULL)
+               return;
        testdir_repourl = g_strdup_printf ("file://%s/repo", testdir);
        gs_app_set_kind (app_source, AS_APP_KIND_SOURCE);
        gs_app_set_management_plugin (app_source, "flatpak");


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