summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-04-18 12:15:06 +0800
committerTim Blechmann <tim@klingt.org>2024-04-21 19:13:24 +0800
commit4bea76fcfab28d3c2cb0e44a11f752ec1d6025d5 (patch)
tree6d4c16e81e1c01cbc737f57bae4b38a66c7a0823
parent6cb67aa99314c636e86ff0be6c60ea3f8bfc8c18 (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 6.7 Change-Id: If93795a878eb4dda1ff02797aafe0b56397b4a0a Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
-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;