diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2018-05-14 10:05:54 +0200 |
---|---|---|
committer | Jannis Völker <jannis.voelker@basyskom.com> | 2018-05-14 10:55:23 +0000 |
commit | 4c5bb1a2e043bc64ac6df54fd0d547ce41012f00 (patch) | |
tree | 7bc08248842f8aafd9f9acdbd327fdd768bf3bf7 | |
parent | 5c8d9fd92f19c97a87000af764d1675dbb9cdc6c (diff) |
Use QTEST_ENVIRONMENT to exclude freeopcua tests in the CI
QT_TEST_CI doesn't seem to be used anymore.
Change-Id: Ib4b03f0fbf680b8e9f98ec7255767b7c2818dc0c
Reviewed-by: Rainer Keller <Rainer.Keller@qt.io>
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r-- | tests/auto/qopcuaclient/tst_client.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/qopcuaclient/tst_client.cpp b/tests/auto/qopcuaclient/tst_client.cpp index 229f5b4..aa601dd 100644 --- a/tests/auto/qopcuaclient/tst_client.cpp +++ b/tests/auto/qopcuaclient/tst_client.cpp @@ -319,8 +319,7 @@ 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")) { + if (backend == QStringLiteral("freeopcua") && qEnvironmentVariable("QTEST_ENVIRONMENT").split(' ').contains(QLatin1String("ci"))) { qDebug() << "The freeopcua tests randomly fail in the CI and are disabled by default"; continue; } |