summaryrefslogtreecommitdiffstats
path: root/tests/arthur
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2010-09-13 12:05:31 (GMT)
committeraavit <qt-info@nokia.com>2010-09-13 12:05:31 (GMT)
commit1ac37675969d31fb508d9f46f2e39b0e2b68dc20 (patch)
treee139bbce5cf0645dfd0d50a17c3c14af33c26924 /tests/arthur
parent738b93fd6676a24880e1ae1c603f9457b43de831 (diff)
downloadQt-1ac37675969d31fb508d9f46f2e39b0e2b68dc20.zip
Qt-1ac37675969d31fb508d9f46f2e39b0e2b68dc20.tar.gz
Qt-1ac37675969d31fb508d9f46f2e39b0e2b68dc20.tar.bz2
Checksumming of the script files added.
If the scripts themselves are modfied, it will not cause mismatch.
Diffstat (limited to 'tests/arthur')
-rw-r--r--tests/arthur/baselineserver/src/baselineserver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/arthur/baselineserver/src/baselineserver.cpp b/tests/arthur/baselineserver/src/baselineserver.cpp
index 63b79ca..d58313f 100644
--- a/tests/arthur/baselineserver/src/baselineserver.cpp
+++ b/tests/arthur/baselineserver/src/baselineserver.cpp
@@ -225,6 +225,8 @@ QString BaselineHandler::pathForItem(const ImageItem &item, bool isBaseline)
QString itemName = item.scriptName;
if (itemName.contains(QLC('.')))
itemName.replace(itemName.lastIndexOf(QLC('.')), 1, QLC('_'));
+ itemName.append(QLC('_'));
+ itemName.append(QString::number(item.scriptChecksum, 16).rightJustified(4, QLC('0')));
return storePath + itemName + QLC('.');
}
@@ -232,7 +234,7 @@ QString BaselineHandler::pathForItem(const ImageItem &item, bool isBaseline)
void BaselineHandler::testPathMapping()
{
- qDebug() << "Storeage prefix:" << BaselineServer::storagePath();
+ qDebug() << "Storage prefix:" << BaselineServer::storagePath();
QStringList hosts;
hosts << QLS("bq-ubuntu910-x86-01")