[gnome-software/wip/jrocha/fix_popular_overrides: 19/20] trivial: Fix dummy plugin's tests when popular-override is set
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/jrocha/fix_popular_overrides: 19/20] trivial: Fix dummy plugin's tests when popular-override is set
- Date: Wed, 5 Apr 2017 14:30:21 +0000 (UTC)
commit a72968626f4c3ee525841c28f3ceb3229bce3453
Author: Joaquim Rocha <jrocha endlessm com>
Date: Wed Apr 5 15:12:34 2017 +0100
trivial: Fix dummy plugin's tests when popular-override is set
When the popular-override GSetting is set then its values will be used
rather the plugins' gs_plugin_add_popular function.
This can be fixed by setting the GNOME_SOFTWARE_POPULAR environment
variable to an empty string as it will make the GsPluginLoader use the
mentioned function.
plugins/dummy/gs-self-test.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/dummy/gs-self-test.c b/plugins/dummy/gs-self-test.c
index 184508d..dd861a7 100644
--- a/plugins/dummy/gs-self-test.c
+++ b/plugins/dummy/gs-self-test.c
@@ -601,6 +601,7 @@ main (int argc, char **argv)
g_setenv ("GS_SELF_TEST_PROVENANCE_SOURCES", "london*,boston", TRUE);
g_setenv ("GS_SELF_TEST_PROVENANCE_LICENSE_SOURCES", "london*,boston", TRUE);
g_setenv ("GS_SELF_TEST_PROVENANCE_LICENSE_URL", "https://www.debian.org/", TRUE);
+ g_setenv ("GNOME_SOFTWARE_POPULAR", "", TRUE);
xml = g_strdup ("<?xml version=\"1.0\"?>\n"
"<components version=\"0.9\">\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]