diff --git a/internal/common/common_test.go b/internal/common/common_test.go index 3b05d53..cd33388 100644 --- a/internal/common/common_test.go +++ b/internal/common/common_test.go @@ -4,6 +4,7 @@ import ( "fmt" "os" "reflect" + "runtime" "strings" "testing" ) @@ -92,6 +93,9 @@ func TestPathExists(t *testing.T) { } func TestHostEtc(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("windows doesn't have etc") + } p := HostEtc("mtab") if p != "/etc/mtab" { t.Errorf("invalid HostEtc, %s", p)