pkg/host: make machine info tests linux-specific

TestScanCPUInfo does not build on !linux.
TestMachineInfoLinux builds, but does not do anything useful.
This commit is contained in:
Dmitry Vyukov 2020-09-14 15:03:18 +02:00
parent 3e84253bf4
commit 6c16e36a7b

View File

@ -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)