浏览文件
identity_unix_test.go
12 行 · 347 B历史下载| 1 | //go:build !windows |
| 2 | |
| 3 | package hostimage |
| 4 | |
| 5 | import "testing" |
| 6 | |
| 7 | func TestUbuntu2204HostIdentity(t *testing.T) { |
| 8 | identity, err := linuxIdentity("ID=ubuntu\nVERSION_ID=\"22.04\"\nPRETTY_NAME=\"Ubuntu 22.04.5 LTS\"\n") |
| 9 | if err != nil || identity.System != "ubuntu-22.04" || identity.Version != "22.04" { |
| 10 | t.Fatalf("identity: %+v %v", identity, err) |
| 11 | } |
| 12 | } |

