From 540349e5cf38445ac0b189d6f6823d731df472b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 6 Aug 2026 09:20:06 +0200 Subject: [PATCH] Fix CI tests --- tests/settings/settings_migration_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/settings/settings_migration_test.cpp b/tests/settings/settings_migration_test.cpp index 636dbfb2a..fb08c88c9 100644 --- a/tests/settings/settings_migration_test.cpp +++ b/tests/settings/settings_migration_test.cpp @@ -33,6 +33,13 @@ protected: void SetUp() override { settingsPath = tempDir.path() + "/"; + + // Isolate native-format QSettings (used by the legacy migration tests) inside the + // temporary directory so the tests never read or write the real user config, + // which would otherwise be shared across CI jobs and flaky. + const QString configDir = tempDir.path() + "/config"; + QDir().mkpath(configDir); + qputenv("XDG_CONFIG_HOME", configDir.toUtf8()); } bool fileExists(const QString &name) const