diff --git a/client/testdata/TestTui-ColoredOutput-darwin-21.6.0 b/client/testdata/TestTui-ColoredOutput-darwin-21 similarity index 100% rename from client/testdata/TestTui-ColoredOutput-darwin-21.6.0 rename to client/testdata/TestTui-ColoredOutput-darwin-21 diff --git a/client/testdata/TestTui-ColoredOutput-darwin-23.3.0 b/client/testdata/TestTui-ColoredOutput-darwin-23 similarity index 100% rename from client/testdata/TestTui-ColoredOutput-darwin-23.3.0 rename to client/testdata/TestTui-ColoredOutput-darwin-23 diff --git a/client/testdata/TestTui-ColoredOutputWithCustomColorScheme-darwin-21.6.0 b/client/testdata/TestTui-ColoredOutputWithCustomColorScheme-darwin-21 similarity index 100% rename from client/testdata/TestTui-ColoredOutputWithCustomColorScheme-darwin-21.6.0 rename to client/testdata/TestTui-ColoredOutputWithCustomColorScheme-darwin-21 diff --git a/client/testdata/TestTui-ColoredOutputWithCustomColorScheme-darwin-23.3.0 b/client/testdata/TestTui-ColoredOutputWithCustomColorScheme-darwin-23 similarity index 100% rename from client/testdata/TestTui-ColoredOutputWithCustomColorScheme-darwin-23.3.0 rename to client/testdata/TestTui-ColoredOutputWithCustomColorScheme-darwin-23 diff --git a/client/testdata/TestTui-ColoredOutputWithDefaultFilter-darwin-21.6.0 b/client/testdata/TestTui-ColoredOutputWithDefaultFilter-darwin-21 similarity index 100% rename from client/testdata/TestTui-ColoredOutputWithDefaultFilter-darwin-21.6.0 rename to client/testdata/TestTui-ColoredOutputWithDefaultFilter-darwin-21 diff --git a/client/testdata/TestTui-ColoredOutputWithDefaultFilter-darwin-23.3.0 b/client/testdata/TestTui-ColoredOutputWithDefaultFilter-darwin-23 similarity index 100% rename from client/testdata/TestTui-ColoredOutputWithDefaultFilter-darwin-23.3.0 rename to client/testdata/TestTui-ColoredOutputWithDefaultFilter-darwin-23 diff --git a/client/testdata/TestTui-ColoredOutputWithSearch-Highlight-darwin-21.6.0 b/client/testdata/TestTui-ColoredOutputWithSearch-Highlight-darwin-21 similarity index 100% rename from client/testdata/TestTui-ColoredOutputWithSearch-Highlight-darwin-21.6.0 rename to client/testdata/TestTui-ColoredOutputWithSearch-Highlight-darwin-21 diff --git a/client/testdata/TestTui-ColoredOutputWithSearch-Highlight-darwin-23.3.0 b/client/testdata/TestTui-ColoredOutputWithSearch-Highlight-darwin-23 similarity index 100% rename from client/testdata/TestTui-ColoredOutputWithSearch-Highlight-darwin-23.3.0 rename to client/testdata/TestTui-ColoredOutputWithSearch-Highlight-darwin-23 diff --git a/client/testdata/TestTui-ColoredOutputWithSearch-darwin-21.6.0 b/client/testdata/TestTui-ColoredOutputWithSearch-darwin-21 similarity index 100% rename from client/testdata/TestTui-ColoredOutputWithSearch-darwin-21.6.0 rename to client/testdata/TestTui-ColoredOutputWithSearch-darwin-21 diff --git a/client/testdata/TestTui-ColoredOutputWithSearch-darwin-23.3.0 b/client/testdata/TestTui-ColoredOutputWithSearch-darwin-23 similarity index 100% rename from client/testdata/TestTui-ColoredOutputWithSearch-darwin-23.3.0 rename to client/testdata/TestTui-ColoredOutputWithSearch-darwin-23 diff --git a/shared/testutils/testutils.go b/shared/testutils/testutils.go index 35a4283..93fe0ec 100644 --- a/shared/testutils/testutils.go +++ b/shared/testutils/testutils.go @@ -415,5 +415,6 @@ func GetOsVersion(t *testing.T) string { panic(err) } - return unix.ByteSliceToString(uts.Release[:]) + version := unix.ByteSliceToString(uts.Release[:]) + return strings.Split(version, ".")[0] }