mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 08:52:19 -07:00
Fix CI tests
This commit is contained in:
parent
cf79f38b72
commit
540349e5cf
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue