diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-09-14 15:03:18 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-09-14 15:15:06 +0200 |
| commit | 6c16e36a7bc8ca1fa66de37e6e70003e0f14e2e8 (patch) | |
| tree | 5966295691446f3fe51b59430425e28a42e39194 | |
| parent | 3e84253bf41d63c55f92679b1aab9102f2f4949a (diff) | |
pkg/host: make machine info tests linux-specific
TestScanCPUInfo does not build on !linux.
TestMachineInfoLinux builds, but does not do anything useful.
| -rw-r--r-- | pkg/host/machine_info_linux_test.go (renamed from pkg/host/machine_info_test.go) | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/host/machine_info_test.go b/pkg/host/machine_info_linux_test.go index 49ef93fe0..a96ca232f 100644 --- a/pkg/host/machine_info_test.go +++ b/pkg/host/machine_info_linux_test.go @@ -6,15 +6,11 @@ package host import ( "bufio" "bytes" - "runtime" "strings" "testing" ) func TestMachineInfoLinux(t *testing.T) { - if runtime.GOOS != "linux" { - t.Skip() - } result, err := CollectMachineInfo() if err != nil { t.Fatal(err) |
