summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-04-18 12:15:06 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-04-21 19:33:48 +0000
commit6bd85d624691ad8db839f8b93f563f4f7cab3227 (patch)
treec07c0de5b5af03a7a5128001ebfbb0b47c022e7d
parenta0d03e623a7d6d6313b84b1fc7b33f11ac38a121 (diff)
Test: media selector - add environment variable to skip media validation
Media validation takes some time. This patch allows devs to override the media validation e.g. if they know all formats are supported. This reduces the turnaround times of running tests quite significantly Pick-to: 6.5 Change-Id: If93795a878eb4dda1ff02797aafe0b56397b4a0a Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> (cherry picked from commit 4bea76fcfab28d3c2cb0e44a11f752ec1d6025d5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/integration/shared/mediafileselector.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/integration/shared/mediafileselector.h b/tests/auto/integration/shared/mediafileselector.h
index 68107747b..ce39a80f1 100644
--- a/tests/auto/integration/shared/mediafileselector.h
+++ b/tests/auto/integration/shared/mediafileselector.h
@@ -92,6 +92,9 @@ private:
static MaybeUrl selectMediaFile(QString media)
{
+ if (qEnvironmentVariableIsSet("QTEST_SKIP_MEDIA_VALIDATION"))
+ return QUrl(media);
+
using namespace Qt::StringLiterals;
QAudioOutput audioOutput;