Module: wine Branch: master Commit: a6b58a2c1fe4951348c788d637acf768aed4d908 URL: https://gitlab.winehq.org/wine/wine/-/commit/a6b58a2c1fe4951348c788d637acf76...
Author: Rémi Bernon rbernon@codeweavers.com Date: Mon Jan 15 08:59:06 2024 +0100
gitlab: Force WINETEST_ARGS to always be a string array.
Fixes the test name passed to winetest.exe which is otherwise split into a character array when there's a single line in the winetest.args file, and then causes it to miss the test and always return success.
---
tools/gitlab/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/gitlab/test.yml b/tools/gitlab/test.yml index 756c4a41ae5..92c14d83996 100644 --- a/tools/gitlab/test.yml +++ b/tools/gitlab/test.yml @@ -79,7 +79,7 @@ test-win10-21h2-32: tags: - win10-21h2 script: - - $WINETEST_ARGS = Get-Content ./winetest.args + - $WINETEST_ARGS = @(Get-Content ./winetest.args) - if ($WINETEST_ARGS.count -gt 0) { ./winetest.exe -q -q -o - -t gitlab -u $CI_JOB_URL @WINETEST_ARGS >winetest.log } else { echo $null >winetest.log } after_script: - Get-Content ./winetest.log @@ -100,7 +100,7 @@ test-win10-21h2-64: tags: - win10-21h2 script: - - $WINETEST_ARGS = Get-Content ./winetest.args + - $WINETEST_ARGS = @(Get-Content ./winetest.args) - if ($WINETEST_ARGS.count -gt 0) { ./winetest64.exe -q -q -o - -t gitlab -u $CI_JOB_URL @WINETEST_ARGS >winetest.log } else { echo $null >winetest.log } after_script: - Get-Content ./winetest.log