Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 505c6fd1 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

FakeAkonadiServer: allow disabling cleanup through env variable

Passing arguments to a QtTest binary does not really work and cannot
be done with CTest anyway, instead we add support for an environment
variable to disable FakeAkonadiServer cleanup (so that it's possible
to inspect the database).
parent 7f88ddde
......@@ -250,8 +250,7 @@ bool FakeAkonadiServer::quit()
const QCommandLineParser &args = AkApplicationBase::instance()->commandLineArguments();
if (!args.isSet(QStringLiteral("no-cleanup"))) {
if (!qEnvironmentVariableIsSet("AKONADI_TEST_NOCLEANUP")) {
bool ok = QDir(basePath()).removeRecursively();
qDebug() << "Cleaned up" << basePath() << "success=" << ok;
} else {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment