Baseline scenegraph test: support the -keeprunning argument

Change-Id: Id0aa83ce27cda84956a10df18e06a5587432eff1
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Eirik Aavitsland 2023-05-02 13:14:59 +02:00
parent 1abfb04fae
commit 3c52c5a92e
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ void tst_Scenegraph::runTest(const QStringList& extraArgs)
consecutiveErrors = 0;
}
else {
if (++consecutiveErrors >= 3)
if (++consecutiveErrors >= 3 && QBaselineTest::shouldAbortIfUnstable())
aborted = true; // Just give up if screen grabbing fails 3 times in a row
QFAIL(qPrintable("QuickView grabbing failed: " + errorMessage));
}