diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2018-04-04 15:24:49 +0200 |
---|---|---|
committer | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2018-04-05 17:44:06 +0000 |
commit | 2882b8cc585e6b02adfc1f351c1f1bf066011667 (patch) | |
tree | 10b6fdfddefffe172eb9a8fc0517f2a72ab0b290 | |
parent | 83710dfb6d6c75073201885dd006b9887514c21e (diff) |
Disable the freeopcua tests when running in the CI
The freeopcua tests randomly run into timeouts when there is high load
on the CI. This makes the integration of changes almost impossible.
As the previous solution to the timeouts stopped working a few weeks
ago and no new solution has been found, the freeopcua tests are disabled
for now.
Change-Id: I9d16fa55d8c6b45c017de10cee3facd643c76dd5
Task-number: QTBUG-66704
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r-- | tests/auto/qopcuaclient/tst_client.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qopcuaclient/tst_client.cpp b/tests/auto/qopcuaclient/tst_client.cpp index 597b71a..7276d0c 100644 --- a/tests/auto/qopcuaclient/tst_client.cpp +++ b/tests/auto/qopcuaclient/tst_client.cpp @@ -315,6 +315,12 @@ Tst_QOpcUaClient::Tst_QOpcUaClient() void Tst_QOpcUaClient::initTestCase() { for (const auto &backend: m_backends) { + // QT_TEST_CI is set to 1 in the Qt CI, see https://wiki.qt.io/CI_Environment + if (backend == QStringLiteral("freeopcua") && qgetenv("QT_TEST_CI") == QStringLiteral("1")) { + qDebug() << "The freeopcua tests randomly fail in the CI and are disabled by default"; + continue; + } + QOpcUaClient *client = m_opcUa.createClient(backend); QVERIFY2(client != nullptr, QString("Loading backend failed: %1").arg(backend).toLatin1().data()); |