Commit 1cfaf81c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

improve export autotest

parent 02e11df2
Pipeline #22694 passed with stage
in 10 minutes and 56 seconds
......@@ -15,3 +15,5 @@ mails/akonadi_mixedmaildir_resource_1/agent_config_akonadi_mixedmaildir_resource
mails/akonadi_mixedmaildir_resource_1/akonadi_mixedmaildir_resource_1rc
mails/akonadi_mixedmaildir_resource_1/mail.zip
mails/akonadi_maildir_resource_1/mail.zip
mails/akonadi_maildir_resource_1/agent_config_akonadi_maildir_resource_1
mails/akonadi_maildir_resource_1/akonadi_maildir_resource_1rc
identities/emailidentities
information/VERSION_2
information/exportdatatype.xml
configs/akonadi_archivemail_agentrc
configs/filters
configs/foldermailarchiverc
configs/kabldaprc
configs/kmail2rc
configs/templatesconfigurationrc
identities/emailidentities
information/VERSION_2
information/exportdatatype.xml
mails/akonadi_maildir_resource_1/agent_config_akonadi_maildir_resource_1
mails/akonadi_maildir_resource_1/akonadi_maildir_resource_1rc
mails/akonadi_maildir_resource_1/mail.zip
mails/akonadi_mbox_resource_1/agent_config_akonadi_mbox_resource_1
mails/akonadi_mbox_resource_1/akonadi_mbox_resource_1.mbox
mails/akonadi_mbox_resource_1/akonadi_mbox_resource_1rc
mails/akonadi_mixedmaildir_resource_1/agent_config_akonadi_mixedmaildir_resource_1
mails/akonadi_mixedmaildir_resource_1/akonadi_mixedmaildir_resource_1rc
mails/akonadi_mixedmaildir_resource_1/mail.zip
transports/mailtransports
configs/filters
......@@ -53,12 +53,11 @@ Akonadi::Collection::Id ResourceConverterTest::convertFolderPathToCollectionId(c
QString ResourceConverterTest::changeResourcePath(QString url) const
{
qDebug() << " need to fix " << url << " mTestPath " << mTestPath;
//qDebug() << " need to fix " << url << " mTestPath " << mTestPath;
if (!url.isEmpty()) {
url.replace(QLatin1String("[TEST_PATH]"), mTestPath);
}
qDebug() <<" FIXED " << url;
//TODO FIXME
//qDebug() <<" FIXED " << url;
return url;
}
......
......@@ -65,6 +65,6 @@ void SaveResourceConfigTest::exportResourceToArchive(const QString &archivePath,
QVERIFY(!urlAgentConfig.isEmpty());
const QFileInfo fi(urlAgentConfig);
const QString filename = fi.fileName();
qDebug() << "urlAgentConfig " << urlAgentConfig;
//qDebug() << "urlAgentConfig " << urlAgentConfig;
QVERIFY(mArchive->addLocalFile(urlAgentConfig, archivePath + filename));
}
......@@ -79,11 +79,11 @@ QString ResourceConverterBase::resourcePath(const QString &agentIdentifier, cons
{
const QString agentFileName = agentIdentifier + QStringLiteral("rc");
const QString configFileName = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) + QLatin1Char('/') + agentFileName;
qDebug() << "configFileName " << configFileName;
//qDebug() << "configFileName " << configFileName;
KSharedConfigPtr resourceConfig = KSharedConfig::openConfig(configFileName);
const QString url = resourcePath(resourceConfig, defaultPath);
qDebug() << " resourcePath " << url;
//qDebug() << " resourcePath " << url;
return url;
}
......
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