Remove minor version numbers from os versions for golden files for tests

This commit is contained in:
David Dworken 2024-04-03 19:04:49 -07:00
parent 6065068f9b
commit 6aea2cb4d9
No known key found for this signature in database
11 changed files with 2 additions and 1 deletions

View File

@ -415,5 +415,6 @@ func GetOsVersion(t *testing.T) string {
panic(err) panic(err)
} }
return unix.ByteSliceToString(uts.Release[:]) version := unix.ByteSliceToString(uts.Release[:])
return strings.Split(version, ".")[0]
} }