[geary/mjog/composer-context-loading-fixes: 19/19] test-client: Fix test failure for new composer widget tests under CI




commit e5bfd7295c4a5034d71994789faab99530dbf124
Author: Michael Gratton <mike vee net>
Date:   Thu Aug 13 15:15:00 2020 +1000

    test-client: Fix test failure for new composer widget tests under CI
    
    Init icon factory so composer tests work under CI, add rsvg as a test
    dependency for Ubuntu which as of 20.10 does not include it by default.

 .gitlab-ci.yml        | 2 +-
 test/test-client.vala | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bdccea3b4..379050e1a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -40,7 +40,7 @@ variables:
     libhandy-0.0-dev libjson-glib-dev libmessaging-menu-dev
     libpeas-dev libsecret-1-dev libsqlite3-dev libunwind-dev
     libwebkit2gtk-4.0-dev libxml2-dev libytnef0-dev
-  UBUNTU_TEST_DEPS: locales xauth xvfb
+  UBUNTU_TEST_DEPS: librsvg2-common locales xauth xvfb
 
 fedora:
   stage: build
diff --git a/test/test-client.vala b/test/test-client.vala
index 5e432b709..1cdbf8f65 100644
--- a/test/test-client.vala
+++ b/test/test-client.vala
@@ -32,6 +32,7 @@ int main(string[] args) {
     Gtk.init(ref args);
     Test.init(ref args);
 
+    IconFactory.init(GLib.File.new_for_path(_SOURCE_ROOT_DIR));
     Geary.RFC822.init();
     Geary.HTML.init();
     Geary.Logging.init();


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