We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents be8ea98 + 7fcaaa5 commit b005b40Copy full SHA for b005b40
pkg/util/kernel/version_test.go
@@ -46,6 +46,13 @@ func TestGetVersion(t *testing.T) {
46
},
47
expected: version.MajorMinor(5, 4),
48
49
+ {
50
+ name: "valid microsoft WSL2 kernel version",
51
+ readFileFunc: func(_ string) ([]byte, error) {
52
+ return []byte("5.15.146.1-microsoft-standard-WSL2"), nil
53
+ },
54
+ expected: version.MajorMinor(5, 15).WithPatch(146),
55
56
{
57
name: "failed to read os-release file",
58
readFileFunc: func(_ string) ([]byte, error) {
0 commit comments