[gnome-software/wip/hughsie/silverblue] Do not run the PackageKit tests on Fedora SilverBlue



commit 070f01d441fca22e55fb103c68555a32ed0c637b
Author: Richard Hughes <richard hughsie com>
Date:   Tue Feb 26 20:25:45 2019 +0000

    Do not run the PackageKit tests on Fedora SilverBlue

 plugins/packagekit/gs-self-test.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/plugins/packagekit/gs-self-test.c b/plugins/packagekit/gs-self-test.c
index c1f2cf74..36fa205d 100644
--- a/plugins/packagekit/gs-self-test.c
+++ b/plugins/packagekit/gs-self-test.c
@@ -264,9 +264,11 @@ main (int argc, char **argv)
        g_assert (ret);
 
        /* plugin tests go here */
-       g_test_add_data_func ("/gnome-software/plugins/packagekit/local",
-                             plugin_loader,
-                             (GTestDataFunc) gs_plugins_packagekit_local_func);
-
+       if (!g_file_test ("/run/ostree-booted", G_FILE_TEST_EXISTS) &&
+           !g_file_test ("/run/.containerenv", G_FILE_TEST_EXISTS)) {
+               g_test_add_data_func ("/gnome-software/plugins/packagekit/local",
+                                     plugin_loader,
+                                     (GTestDataFunc) gs_plugins_packagekit_local_func);
+       }
        return g_test_run ();
 }


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