Squish: Fix creating test cases

Change-Id: Iad0e20a213d0a45a2b7d8a43d18d320e02949179
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2022-11-11 14:15:26 +01:00
parent 47353584f9
commit a44bd1643b

View File

@@ -178,7 +178,7 @@ static bool copyScriptTemplates(const SuiteConf &suiteConf, const Utils::FilePat
const Utils::FilePath scripts = s->scriptsPath(suiteConf.language()); const Utils::FilePath scripts = s->scriptsPath(suiteConf.language());
const Utils::FilePath test = scripts.pathAppended(testStr + extension); const Utils::FilePath test = scripts.pathAppended(testStr + extension);
const Utils::FilePath testFile = destination.pathAppended("test" + extension); const Utils::FilePath testFile = destination.pathAppended("test" + extension);
QTC_ASSERT(testFile.exists(), return false); QTC_ASSERT(!testFile.exists(), return false);
ok = test.copyFile(testFile); ok = test.copyFile(testFile);
QTC_ASSERT(ok, return false); QTC_ASSERT(ok, return false);