git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] ci: fix unit tests not running on windows

From
Patrick Steinhardt <ps@pks.im>
Date
Sep 24, 2026, 14:14 UTC
Message-ID
<arUwKpju14AVHOIy@pks.im>
In-Reply-To
<20260924-785-unit-tests-don-t-run-on-windows-v1-1-223cd2e4df43@gmail.com>
On Thu, Sep 24, 2026 at 03:09:18PM +0200, Karthik Nayak wrote:
Show 5 quoted lines
> Since 3141df7ec4 (ci: don't skip smallest test slice in GitLab,
> 2026-02-19) both our CI workflows at GitLab and GitHub use one-indexed
> slices to run windows tests. Modify the check for running unit tests on
> Windows to also be one-indexed as otherwise, the unit tests are never
> run.

Oh, that's something that I missed indeed. At least we've still been running unit tests via Meson :)

Show 14 quoted lines
> diff --git a/ci/run-test-slice.sh b/ci/run-test-slice.sh
> index ff948e397f..d0063efc42 100755
> --- a/ci/run-test-slice.sh
> +++ b/ci/run-test-slice.sh
> @@ -10,8 +10,8 @@ TESTS=$(cd t && ./helper/test-tool path-utils slice-tests "$1" "$2" t[0-9]*.sh)
>  group "Run tests" make --quiet -C t T="$(echo "$TESTS" | tr '\n' ' ')" ||
>  handle_failed_tests
>  
> -# We only have one unit test at the moment, so run it in the first slice
> -if [ "$1" == "0" ] ; then
> +# We only have one unit test at the moment, so run it in the first slice.
> +if [ "$1" == "1" ] ; then
>  	group "Run unit tests" make --quiet -C t unit-tests-test-tool
>  fi
The diff looks good to me, thanks!
Patrick
Previous: Karthik Nayak
Message 2 of 2 in “ci: fix unit tests not running on windows”
  1. ci: fix unit tests not running on windowsKarthik Nayak, Sep 24, 2026
  2. Patrick SteinhardtSep 24, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.