From 00a2dd0747baee52dab106ce02d551227212058a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Thu, 12 Aug 2021 23:03:27 +0200 Subject: [PATCH] Squish: Explicitly convert analyzer data to str With Creator built on Qt 6.2, Squish considers the data different although the contents look the same. Change-Id: I281b7425d5b3f9a977456253e0299f452d75c1e2 Reviewed-by: Christian Stenger --- tests/system/suite_debugger/tst_simple_analyze/test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/system/suite_debugger/tst_simple_analyze/test.py b/tests/system/suite_debugger/tst_simple_analyze/test.py index a56680086c7..fc7bfb6e41f 100644 --- a/tests/system/suite_debugger/tst_simple_analyze/test.py +++ b/tests/system/suite_debugger/tst_simple_analyze/test.py @@ -117,10 +117,12 @@ def performTest(workingDir, projectName, availableConfigs): % (selfPercent, totalPercent)) if str(model.index(row, colCalls).data()) == "1": for col in [colMedian, colLongest, colShortest]: - test.compare(model.index(row, colMean).data(), model.index(row, col).data(), + test.compare(str(model.index(row, colMean).data()), + str(model.index(row, col).data()), "For just one call, no differences in execution time may be shown.") elif str(model.index(row, colCalls).data()) == "2": - test.compare(model.index(row, colMedian).data(), model.index(row, colMean).data(), + test.compare(str(model.index(row, colMedian).data()), + str(model.index(row, colMean).data()), "For two calls, median and mean time must be the same.") progressBarWait(15000, False) # wait for "Build" progressbar to disappear clickButton(waitForObject(":Analyzer Toolbar.Clear_QToolButton"))