From 6a7eefa54be1d0e11e4290e7ab2d3ecd50fed2e9 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Wed, 15 Jan 2025 09:43:40 +0100 Subject: [PATCH] Use the same test names on Win as on other OSes (#2149) ## Changes Use name format "TestAccept/bundle/variables/host" (previously slashes were reversed on Windows). ## Tests Manually run "go test ./acceptance -v -run TestAccept/bundle/variables/host" in Windows VM. --- acceptance/acceptance_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acceptance/acceptance_test.go b/acceptance/acceptance_test.go index 62c56a325..529077b05 100644 --- a/acceptance/acceptance_test.go +++ b/acceptance/acceptance_test.go @@ -87,7 +87,8 @@ func TestAccept(t *testing.T) { require.NotEmpty(t, testDirs) for _, dir := range testDirs { - t.Run(dir, func(t *testing.T) { + testName := strings.ReplaceAll(dir, "\\", "/") + t.Run(testName, func(t *testing.T) { t.Parallel() runTest(t, dir, coverDir, repls) })