Skip to content

Commit

Permalink
Tests: improve CI detection
Browse files Browse the repository at this point in the history
QTEST_ENVIRONMENT may contain more than one keywords, so we need to
split()

Task-number: QTBUG-129486
Pick-to: 6.5 6.8
Change-Id: I4d55cc5bd4f7ca14495d7e4f17adc664a78dd3cb
Reviewed-by: Artem Dyomin <[email protected]>
  • Loading branch information
timblechmann committed Oct 8, 2024
1 parent aa8b77d commit b091a7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/auto/shared/mediabackendutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ inline bool isRhiRenderingSupported()

inline bool isCI()
{
return qEnvironmentVariable("QTEST_ENVIRONMENT").toLower() == "ci";
return qEnvironmentVariable("QTEST_ENVIRONMENT")
.toLower()
.split(' ')
.contains(QStringLiteral("ci"));
}

#define QSKIP_GSTREAMER(message) \
Expand Down

0 comments on commit b091a7f

Please sign in to comment.