From aec007d5169b24eb7ad748e5466eba96a0fce33b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wierci=C5=84ski?= Date: Thu, 7 Nov 2024 14:49:32 +0100 Subject: [PATCH] wasm tests: Enable cross origin isolation for Selenium tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change enables running Selenium tests with multithreading. Change-Id: I2a3e170cb6681142193f33d45bb0d1733034e405 Reviewed-by: Morten Johan Sørvig Reviewed-by: Even Oscar Andersen --- tests/auto/wasm/selenium/run.bat | 2 +- tests/auto/wasm/selenium/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/wasm/selenium/run.bat b/tests/auto/wasm/selenium/run.bat index 56305c72c3e..3dafdae5e4b 100644 --- a/tests/auto/wasm/selenium/run.bat +++ b/tests/auto/wasm/selenium/run.bat @@ -4,6 +4,6 @@ :: The highest version of python that can be used is 3.11 :: Download from here: https://www.python.org/downloads/release/python-3118/ :: -start "qtwasmserver.py" python qtwasmserver.py -p 8001 +start "qtwasmserver.py" python qtwasmserver.py --cross-origin-isolation -p 8001 python qwasmwindow.py taskkill /FI "WINDOWTITLE eq qtwasmserver.py" diff --git a/tests/auto/wasm/selenium/run.sh b/tests/auto/wasm/selenium/run.sh index b9a41ace8c5..eab38ccab05 100755 --- a/tests/auto/wasm/selenium/run.sh +++ b/tests/auto/wasm/selenium/run.sh @@ -52,7 +52,7 @@ fi script_dir=`dirname ${BASH_SOURCE[0]}` cd "$script_dir" -$python_command qtwasmserver.py -p 8001 > /dev/null 2>&1 & +$python_command qtwasmserver.py --cross-origin-isolation -p 8001 > /dev/null 2>&1 & cleanupPid=$! $python_command qwasmwindow.py $@