mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:49:33 +02:00
Updated message box.
This commit is contained in:
parent
d09ca34cfd
commit
6e35867123
1 changed files with 4 additions and 4 deletions
|
@ -215,17 +215,17 @@ void Test::appendTestResultsToFile(TestResult testResult, QPixmap comparisonImag
|
||||||
}
|
}
|
||||||
|
|
||||||
void::Test::appendTestResultsToFile(QString testResultFilename, bool hasFailed) {
|
void::Test::appendTestResultsToFile(QString testResultFilename, bool hasFailed) {
|
||||||
QString resultFolderPath;
|
QString resultFolderPath { _testResultsFolderPath };
|
||||||
if (hasFailed) {
|
if (hasFailed) {
|
||||||
resultFolderPath = _testResultsFolderPath + "/Failure_";
|
resultFolderPath += "/Failure_";
|
||||||
++_failureIndex;
|
++_failureIndex;
|
||||||
} else {
|
} else {
|
||||||
resultFolderPath = _testResultsFolderPath + "/Success_";
|
resultFolderPath += "/Success_";
|
||||||
++_successIndex;
|
++_successIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!QFile::copy(testResultFilename, resultFolderPath)) {
|
if (!QFile::copy(testResultFilename, resultFolderPath)) {
|
||||||
//// QMessageBox::critical(0, "Internal error: " + QString(__FILE__) + ":" + QString::number(__LINE__), "Failed to copy " + sourceFile + " to " + destinationFile);
|
QMessageBox::critical(0, "Internal error: " + QString(__FILE__) + ":" + QString::number(__LINE__), "Failed to copy " + testResultFilename + " to " + resultFolderPath);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue