mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 16:06:30 +02:00
Remove old recursive scripts that are empty.
Don't add unneeded delays.
This commit is contained in:
parent
dbdf5fdd1f
commit
687745dc7e
1 changed files with 5 additions and 4 deletions
|
@ -824,6 +824,10 @@ void TestCreator::createRecursiveScript(const QString& directory, bool interacti
|
|||
|
||||
// If 'directories' is empty, this means that this recursive script has no tests to call, so it is redundant
|
||||
if (directories.length() == 0) {
|
||||
QString testRecursivePathname = directory + "/" + TEST_RECURSIVE_FILENAME;
|
||||
if (QFile::exists(testRecursivePathname)) {
|
||||
QFile::remove(testRecursivePathname);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -856,10 +860,7 @@ void TestCreator::createRecursiveScript(const QString& directory, bool interacti
|
|||
textStream << " nitpick = createNitpick(Script.resolvePath(\".\"));" << endl;
|
||||
textStream << " testsRootPath = nitpick.getTestsRootPath();" << endl << endl;
|
||||
textStream << " nitpick.enableRecursive();" << endl;
|
||||
textStream << " nitpick.enableAuto();" << endl << endl;
|
||||
textStream << " if (typeof Test !== 'undefined') {" << endl;
|
||||
textStream << " Test.wait(10000);" << endl;
|
||||
textStream << " }" << endl;
|
||||
textStream << " nitpick.enableAuto();" << endl;
|
||||
textStream << "} else {" << endl;
|
||||
textStream << " depth++" << endl;
|
||||
textStream << "}" << endl << endl;
|
||||
|
|
Loading…
Reference in a new issue