[geary/wip/workaround-gcc150-b0rkedness] Work around DB tests always failing on gcc150.osuosl.org CI runner



commit 8a2856618fdef0770de1f4da1737133dbb50c40e
Author: Michael Gratton <mike vee net>
Date:   Tue Feb 19 14:15:13 2019 +1100

    Work around DB tests always failing on gcc150.osuosl.org CI runner
    
    See Infrastructure/Infrastructure#97

 test/test-engine.vala | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/test/test-engine.vala b/test/test-engine.vala
index 6a9a17a2..8c11bc90 100644
--- a/test/test-engine.vala
+++ b/test/test-engine.vala
@@ -22,6 +22,11 @@ int main(string[] args) {
 
     TestSuite engine = new TestSuite("engine");
 
+    // 😢 https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/97
+    bool disable_db_tests = GLib.Environment.get_host_name().has_prefix(
+        "gcc150"
+    );
+
     engine.add_suite(new Geary.AccountInformationTest().get_suite());
     engine.add_suite(new Geary.AttachmentTest().get_suite());
     engine.add_suite(new Geary.EngineTest().get_suite());
@@ -35,8 +40,10 @@ int main(string[] args) {
     engine.add_suite(new Geary.App.ConversationMonitorTest().get_suite());
     engine.add_suite(new Geary.Ascii.Test().get_suite());
     engine.add_suite(new Geary.ConfigFileTest().get_suite());
-    engine.add_suite(new Geary.Db.DatabaseTest().get_suite());
-    engine.add_suite(new Geary.Db.VersionedDatabaseTest().get_suite());
+    if (!disable_db_tests) {
+        engine.add_suite(new Geary.Db.DatabaseTest().get_suite());
+        engine.add_suite(new Geary.Db.VersionedDatabaseTest().get_suite());
+    }
     engine.add_suite(new Geary.HTML.UtilTest().get_suite());
     // Other IMAP tests rely on DataFormat working, so test that first
     engine.add_suite(new Geary.Imap.DataFormatTest().get_suite());
@@ -46,11 +53,13 @@ int main(string[] args) {
     engine.add_suite(new Geary.Imap.ListParameterTest().get_suite());
     engine.add_suite(new Geary.Imap.MailboxSpecifierTest().get_suite());
     engine.add_suite(new Geary.Imap.NamespaceResponseTest().get_suite());
-    engine.add_suite(new Geary.ImapDB.AccountTest().get_suite());
-    engine.add_suite(new Geary.ImapDB.AttachmentTest().get_suite());
-    engine.add_suite(new Geary.ImapDB.AttachmentIoTest().get_suite());
-    engine.add_suite(new Geary.ImapDB.DatabaseTest().get_suite());
-    engine.add_suite(new Geary.ImapDB.FolderTest().get_suite());
+    if (!disable_db_tests) {
+        engine.add_suite(new Geary.ImapDB.AccountTest().get_suite());
+        engine.add_suite(new Geary.ImapDB.AttachmentTest().get_suite());
+        engine.add_suite(new Geary.ImapDB.AttachmentIoTest().get_suite());
+        engine.add_suite(new Geary.ImapDB.DatabaseTest().get_suite());
+        engine.add_suite(new Geary.ImapDB.FolderTest().get_suite());
+    }
     engine.add_suite(new Geary.ImapEngine.AccountProcessorTest().get_suite());
     engine.add_suite(new Geary.Inet.Test().get_suite());
     engine.add_suite(new Geary.JS.Test().get_suite());


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