RegTestRunner : remove test generated folder

This commit is contained in:
Magne Sjaastad 2018-08-09 15:37:02 +02:00
parent 0c6df7d6a8
commit 5054a01dbe

View File

@ -216,6 +216,12 @@ void RiaRegressionTestRunner::runRegressionTest(const QString& testRootPath, con
QFileInfoList commandFileEntries = testCaseFolder.entryInfoList(filterList);
if (!commandFileEntries.empty())
{
{
QString generatedFilesFolderName = testCaseFolder.filePath(RegTestNames::generatedFilesFolderName);
QDir genDir(generatedFilesFolderName);
removeDirectoryWithContent(genDir);
}
QString currentApplicationPath = QDir::current().absolutePath();
// Set current path to the folder containing the command file, as this is required when using file references