Commit 562f156a authored by Elvis Angelaccio's avatar Elvis Angelaccio

GIT_SILENT Fix AddToArchive test

This workarounds a git limitation that doesn't allow us to add an empty
directory in the repository.
parent f3601127
......@@ -40,10 +40,17 @@ class AddToArchiveTest : public QObject
private Q_SLOTS:
void init();
void testCompressHere_data();
void testCompressHere();
};
void AddToArchiveTest::init()
{
// The test needs an empty subfolder, but git doesn't support tracking of empty directories.
QDir(QFINDTESTDATA("data/testdirwithemptysubdir")).mkdir(QStringLiteral("emptydir"));
}
void AddToArchiveTest::testCompressHere_data()
{
QTest::addColumn<QString>("expectedSuffix");
......
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