diff options
author | aavit <qt-info@nokia.com> | 2010-10-25 11:04:44 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2010-10-25 11:04:44 (GMT) |
commit | 3f0ff810e448253e6da0c4716e6ed1819786349f (patch) | |
tree | e149e2c4bc885e0cc4ae035a97bba1789a15cb19 /tests/arthur | |
parent | e7f0288bd9a57c25a7e482f4b058769d7147270a (diff) | |
download | Qt-3f0ff810e448253e6da0c4716e6ed1819786349f.zip Qt-3f0ff810e448253e6da0c4716e6ed1819786349f.tar.gz Qt-3f0ff810e448253e6da0c4716e6ed1819786349f.tar.bz2 |
Preparations for running on actual server
Diffstat (limited to 'tests/arthur')
-rw-r--r-- | tests/arthur/baselineserver/src/baselineserver.cpp | 11 | ||||
-rw-r--r-- | tests/arthur/common/baselineprotocol.cpp | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/tests/arthur/baselineserver/src/baselineserver.cpp b/tests/arthur/baselineserver/src/baselineserver.cpp index 86554fd..bef6e41 100644 --- a/tests/arthur/baselineserver/src/baselineserver.cpp +++ b/tests/arthur/baselineserver/src/baselineserver.cpp @@ -23,9 +23,14 @@ BaselineServer::BaselineServer(QObject *parent) QString BaselineServer::storagePath() { if (storage.isEmpty()) { - QDir dir(QCoreApplication::applicationDirPath()); - dir.cdUp(); - storage = dir.path() + QLS("/storage/"); + QByteArray envDir = qgetenv("QT_LANCELOT_DIR"); + if (!envDir.isEmpty()) { + storage = QLS(envDir.append('/')); + } else { + QDir dir(QCoreApplication::applicationDirPath()); + dir.cdUp(); + storage = dir.path() + QLS("/storage/"); + } } return storage; } diff --git a/tests/arthur/common/baselineprotocol.cpp b/tests/arthur/common/baselineprotocol.cpp index 78c80f1..a7fb5be 100644 --- a/tests/arthur/common/baselineprotocol.cpp +++ b/tests/arthur/common/baselineprotocol.cpp @@ -168,10 +168,9 @@ BaselineProtocol::~BaselineProtocol() bool BaselineProtocol::connect() { errMsg.clear(); - //###TBD: determine server address; for now local devhost QByteArray serverName(qgetenv("QT_LANCELOT_SERVER")); if (serverName.isNull()) - serverName = "chimera.europe.nokia.com"; + serverName = "lancelot.test.qt.nokia.com"; socket.connectToHost(serverName, ServerPort); if (!socket.waitForConnected(Timeout)) { |