forked from qt-creator/qt-creator
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 <christian.stenger@qt.io>
This commit is contained in:
@@ -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"))
|
||||
|
Reference in New Issue
Block a user