Skip to content
Permalink
Browse files

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
  • Loading branch information
nyalldawson committed Jan 8, 2020
1 parent b9b4f88 commit f4f8a538944b527d9fd5d4b47c1e10a78a08dc01
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/core/qgsrenderchecker.cpp
@@ -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() )

0 comments on commit f4f8a53

Please sign in to comment.
You can’t perform that action at this time.