summaryrefslogtreecommitdiffstats
path: root/tests/arthur
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2010-11-22 14:28:38 (GMT)
committeraavit <qt-info@nokia.com>2010-11-22 14:28:38 (GMT)
commitbc40961abdcdfb7cca8cfd7020d9ca32a3105735 (patch)
treeab0ac77bda0c6a3e8706bb7bd9b2c39f9a1d589e /tests/arthur
parent779dd15d1297c99970fc63a290fca22a405c267f (diff)
downloadQt-bc40961abdcdfb7cca8cfd7020d9ca32a3105735.zip
Qt-bc40961abdcdfb7cca8cfd7020d9ca32a3105735.tar.gz
Qt-bc40961abdcdfb7cca8cfd7020d9ca32a3105735.tar.bz2
Separate reports from adhoc and pulse runs
Diffstat (limited to 'tests/arthur')
-rw-r--r--tests/arthur/baselineserver/src/htmlpage.cpp5
-rw-r--r--tests/arthur/baselineserver/src/htmlpage.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/arthur/baselineserver/src/htmlpage.cpp b/tests/arthur/baselineserver/src/htmlpage.cpp
index fdbdfb8..a4e9e0c 100644
--- a/tests/arthur/baselineserver/src/htmlpage.cpp
+++ b/tests/arthur/baselineserver/src/htmlpage.cpp
@@ -69,7 +69,8 @@ void HTMLPage::start(const QString &storagepath, const QString &runId, const Pla
ctx = context;
root = storagepath + QLC('/');
imageItems = itemList;
- QString dir = root + QLS("reports/");
+ reportDir = pinfo.value(PI_PulseGitBranch).isEmpty() ? QLS("reports/adhoc/") : QLS("reports/pulse/");
+ QString dir = root + reportDir;
QDir cwd;
if (!cwd.exists(dir))
cwd.mkpath(dir);
@@ -78,7 +79,7 @@ void HTMLPage::start(const QString &storagepath, const QString &runId, const Pla
void HTMLPage::writeHeader(const ImageItem &item)
{
- path = QLS("reports/") + id + QLC('_') + item.engineAsString()
+ path = reportDir + id + QLC('_') + item.engineAsString()
+ QLC('_') + item.formatAsString() + QLS(".html");
QString pageUrl = BaselineServer::baseUrl() + path;
diff --git a/tests/arthur/baselineserver/src/htmlpage.h b/tests/arthur/baselineserver/src/htmlpage.h
index fa4d1ed..f5e6e1c 100644
--- a/tests/arthur/baselineserver/src/htmlpage.h
+++ b/tests/arthur/baselineserver/src/htmlpage.h
@@ -65,6 +65,7 @@ private:
QString root;
QString path;
+ QString reportDir;
QFile file;
QTextStream out;
QString id;