summaryrefslogtreecommitdiffstats
path: root/tests/arthur
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond.kjernasen@nokia.com>2010-09-08 09:57:22 (GMT)
committerTrond Kjernåsen <trond.kjernasen@nokia.com>2010-09-08 09:57:22 (GMT)
commit45d5811cb2b47e41d7bb0be4cd44e5aef739f804 (patch)
tree3718015acdad959a33ae38a4e6960a9cad49b50e /tests/arthur
parent1743a8bea43066c52cf07f6c8a859c3d9ddb65da (diff)
downloadQt-45d5811cb2b47e41d7bb0be4cd44e5aef739f804.zip
Qt-45d5811cb2b47e41d7bb0be4cd44e5aef739f804.tar.gz
Qt-45d5811cb2b47e41d7bb0be4cd44e5aef739f804.tar.bz2
Check the QT_LANCELOT_SERVER env var for the servername.
Diffstat (limited to 'tests/arthur')
-rw-r--r--tests/arthur/common/baselineprotocol.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/arthur/common/baselineprotocol.cpp b/tests/arthur/common/baselineprotocol.cpp
index 7996fff..34d1a04 100644
--- a/tests/arthur/common/baselineprotocol.cpp
+++ b/tests/arthur/common/baselineprotocol.cpp
@@ -141,7 +141,9 @@ bool BaselineProtocol::connect()
{
errMsg.clear();
//###TBD: determine server address; for now local devhost
- QLatin1String serverName("chimera.europe.nokia.com");
+ QByteArray serverName(qgetenv("QT_LANCELOT_SERVER"));
+ if (serverName.isNull())
+ serverName = "chimera.europe.nokia.com";
socket.connectToHost(serverName, ServerPort);