mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 08:14:02 +01:00
Remove minor version numbers from os versions for golden files for tests
This commit is contained in:
parent
6065068f9b
commit
6aea2cb4d9
@ -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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user