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.
This commit is contained in:
Denis Bilenko 2025-01-15 09:43:40 +01:00 committed by GitHub
parent 82e35530b0
commit 6a7eefa54b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ func TestAccept(t *testing.T) {
require.NotEmpty(t, testDirs) require.NotEmpty(t, testDirs)
for _, dir := range 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() t.Parallel()
runTest(t, dir, coverDir, repls) runTest(t, dir, coverDir, repls)
}) })