diff options
author | Mikko Hallamaa <mikko.hallamaa@qt.io> | 2024-03-15 12:45:44 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-03-16 01:20:48 +0000 |
commit | 20299bd1c1b2f97e6ec441b9c2ec71caa283b4d7 (patch) | |
tree | d280d5bf00011513150107e10741d67d5e8b5e0f | |
parent | 66c2677d7005c4c95209e4e42e3cfe5daeb6c289 (diff) |
tst_qmediacapturesession: Skip test on OpenSuse CI
This test is flaky on CI OpenSuse. Skip for now to unblock.
Task-number: QTBUG-123356
Task-number: QTBUG-123224
Pick-to: 6.5
Change-Id: I20711af67b3f692647860c31b7662bf7c4c28274
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
(cherry picked from commit b0f4c75830eecd28af3436416a898dbfd40377cd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 9bf1a3806581597c7848b44956457cbe4ec08f60)
-rw-r--r-- | tests/auto/integration/qmediacapturesession/tst_qmediacapturesession.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/auto/integration/qmediacapturesession/tst_qmediacapturesession.cpp b/tests/auto/integration/qmediacapturesession/tst_qmediacapturesession.cpp index c8d487704..09788e85e 100644 --- a/tests/auto/integration/qmediacapturesession/tst_qmediacapturesession.cpp +++ b/tests/auto/integration/qmediacapturesession/tst_qmediacapturesession.cpp @@ -9,6 +9,7 @@ #include <QDebug> #include <QVideoSink> #include <QVideoWidget> +#include <QSysInfo> #include <qcamera.h> #include <qcameradevice.h> @@ -42,9 +43,17 @@ class tst_QMediaCaptureSession: public QObject private slots: + void initTestCase() + { + if (qEnvironmentVariable("QTEST_ENVIRONMENT").toLower() == "ci") { #ifdef Q_OS_ANDROID - void initTestCase() { QSKIP("SKIP initTestCase on CI, because of QTBUG-118571"); } + QSKIP("SKIP initTestCase on CI, because of QTBUG-118571"); +#elif defined(Q_OS_LINUX) + if (QSysInfo::productType().contains("opensuse", Qt::CaseInsensitive)) + QSKIP("SKIP initTestCase on CI, because of QTBUG-123356"); #endif + } + } void testAudioMute(); void stress_test_setup_and_teardown(); |