wasm tests: Add option to run Chrome in headless mode
Running Chrome in headless mode helps to circumvent a lot of issues with GPU driver/Wayland interactions that we encounter in CI. Run Chrome in headless mode if corresponding environment variable is set. Change-Id: I1cf290f484054766e2b99d99045e7b39d5662210 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Even Oscar Andersen <even.oscar.andersen@qt.io> (cherry picked from commit 213a2610d821b93429d6519dda11ab0e7b5cae84) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
92afa1eaf8
commit
f7efdfac36
@ -708,7 +708,11 @@ function(qt_internal_add_test name)
|
||||
set(browser "chrome")
|
||||
endif()
|
||||
list(APPEND extra_test_args "--browser=${browser}")
|
||||
list(APPEND extra_test_args "--browser_args=\"--password-store=basic\"")
|
||||
if(DEFINED ENV{HEADLESS_CHROME_FOR_TESTING})
|
||||
list(APPEND extra_test_args "--browser_args=\"--password-store=basic --headless\"")
|
||||
else()
|
||||
list(APPEND extra_test_args "--browser_args=\"--password-store=basic\"")
|
||||
endif()
|
||||
list(APPEND extra_test_args "--kill_exit")
|
||||
|
||||
# Tests may require asyncify if they use exec(). Enable asyncify for
|
||||
|
Loading…
x
Reference in New Issue
Block a user