Ensure unique ids are generated whenever tests are run multiple times

Avoids layout corruption in the generated html reports if the same test
is run more than once
This commit is contained in:
Nyall Dawson 2020-01-08 13:46:33 +10:00
parent b9b4f884c4
commit f4f8a53894

View File

@ -28,8 +28,6 @@
#include <QDebug>
#include <QBuffer>
static int sRenderCounter = 0;
QString QgsRenderChecker::controlImagePath() const
{
@ -344,7 +342,7 @@ bool QgsRenderChecker::compareImages( const QString &testName,
mRenderedImageFile,
mExpectedImageFile )
.arg( imgWidth ).arg( imgHeight )
.arg( sRenderCounter++ );
.arg( QUuid::createUuid().toString().mid( 1, 6 ) );
QString prefix;
if ( !mControlPathPrefix.isNull() )