[nautilus/test-self-check-pipeline-failure] application: Don't migrate tracker data in self-check test




commit 219eebc63ed00e31f06d80fd177302f1ad32981d
Author: António Fernandes <antoniof gnome org>
Date:   Mon May 30 21:15:58 2022 +0100

    application: Don't migrate tracker data in self-check test
    
    It's not necessary and causes irrelevant CI failures.

 src/meson.build            | 1 +
 src/nautilus-application.c | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/meson.build b/src/meson.build
index fbd3c7735..e3bb6ee8f 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -311,6 +311,7 @@ if get_option('tests') == 'all'
     env: [
       'G_DEBUG=fatal-warnings',
       'GSETTINGS_SCHEMA_DIR=@0@'.format(join_paths(meson.project_build_root(), 'data'))
+      'RUNNING_TESTS=@0@'.format('TRUE')
     ]
   )
 endif
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 9d4e2959d..f1e29f2a0 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -1260,7 +1260,10 @@ nautilus_application_startup_common (NautilusApplication *self)
 
     nautilus_init_application_actions (self);
 
-    nautilus_tag_manager_maybe_migrate_tracker2_data (priv->tag_manager);
+    if (!g_strcmp0 (g_getenv ("RUNNING_TESTS"), "TRUE"))
+    {
+        nautilus_tag_manager_maybe_migrate_tracker2_data (priv->tag_manager);
+    }
 
     nautilus_profile_end (NULL);
 


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