mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-05 00:04:40 -05:00
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:
parent
b9b4f884c4
commit
f4f8a53894
@ -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() )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user