* [PATCH] ci: fix unit tests not running on windows
@ 2026-09-24 13:09 Karthik Nayak
2026-09-24 14:14 ` Patrick Steinhardt
0 siblings, 1 reply; 2+ messages in thread
From: Karthik Nayak @ 2026-09-24 13:09 UTC (permalink / raw)
To: git; +Cc: Johannes Schindelin, Karthik Nayak
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.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
---
This is based on top of 2d486439fe (ci: fix unit tests not running on
windows, 2026-09-17), with Johannes's cargo fixes [1] merged in.
[1]: pull.2233.git.1789819933.gitgitgadget@gmail.com
---
ci/run-test-slice.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
---
base-commit: 42f706c773b555dd34b9b913e9acb0cac617b1f0
change-id: 20260917-785-unit-tests-don-t-run-on-windows-7831eeb33371
Thanks
- Karthik
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ci: fix unit tests not running on windows
2026-09-24 13:09 [PATCH] ci: fix unit tests not running on windows Karthik Nayak
@ 2026-09-24 14:14 ` Patrick Steinhardt
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Steinhardt @ 2026-09-24 14:14 UTC (permalink / raw)
To: Karthik Nayak; +Cc: git, Johannes Schindelin
On Thu, Sep 24, 2026 at 03:09:18PM +0200, Karthik Nayak wrote:
> 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 :)
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-24 14:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-24 13:09 [PATCH] ci: fix unit tests not running on windows Karthik Nayak
2026-09-24 14:14 ` Patrick Steinhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox