From e3402328c899fe9602db6333b1ed0730bd05b159 Mon Sep 17 00:00:00 2001 From: NissimHadar Date: Wed, 5 Dec 2018 12:10:28 -0800 Subject: [PATCH] Use same name for all text results in zipped folder. --- tools/nitpick/src/Test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/nitpick/src/Test.cpp b/tools/nitpick/src/Test.cpp index b2cb77143b..896b015611 100644 --- a/tools/nitpick/src/Test.cpp +++ b/tools/nitpick/src/Test.cpp @@ -225,10 +225,10 @@ void::Test::appendTestResultsToFile(QString testResultFilename, bool hasFailed) QString testName = testResultFilename.left(testNameTemp.lastIndexOf('.')); QString resultFolderPath; if (hasFailed) { - resultFolderPath = _testResultsFolderPath + "/Failure_" + testName; + resultFolderPath = _testResultsFolderPath + "/Failure_" + QString::number(_failureIndex) + "--" + testName; ++_failureIndex; } else { - resultFolderPath = _testResultsFolderPath + "/Success_" + testName; + resultFolderPath = _testResultsFolderPath + "/Success_" + QString::number(_successIndex) + "--" + testName; ++_successIndex; } @@ -239,7 +239,7 @@ void::Test::appendTestResultsToFile(QString testResultFilename, bool hasFailed) } QString source = _snapshotDirectory + "/" + testResultFilename; - QString destination = resultFolderPath + "/" + testResultFilename; + QString destination = resultFolderPath + "/Result.txt"; if (!QFile::copy(source, destination)) { QMessageBox::critical(0, "Internal error: " + QString(__FILE__) + ":" + QString::number(__LINE__), "Failed to copy " + source + " to " + destination); exit(-1);