Skip to content

Commit

Permalink
tests: Use Chrome provided by env var for auto tests
Browse files Browse the repository at this point in the history
Using Chrome provided by environment variable will allow
to pin the version of Chrome on CI for better tests stability.

Change-Id: Ic6f3026eb5694b628d3a4dd1dcc49c53270e2b86
Reviewed-by: Lorn Potter <[email protected]>
  • Loading branch information
Piotr Wierciński committed Sep 14, 2024
1 parent ddfcc07 commit f86a033
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/QtTestHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,12 @@ function(qt_internal_add_test name)
list(APPEND extra_test_args "qtestname=${testname}")
list(APPEND extra_test_args "--silence_timeout=60")
# TODO: Add functionality to specify browser
list(APPEND extra_test_args "--browser=chrome")
if(DEFINED ENV{BROWSER_FOR_WASM})
set(browser $ENV{BROWSER_FOR_WASM})
else()
set(browser "chrome")
endif()
list(APPEND extra_test_args "--browser=${browser}")
list(APPEND extra_test_args "--browser_args=\"--password-store=basic\"")
list(APPEND extra_test_args "--kill_exit")

Expand Down

0 comments on commit f86a033

Please sign in to comment.