Skip to content

Commit

Permalink
[internal]Windows: skip Host test.
Browse files Browse the repository at this point in the history
  • Loading branch information
shirou committed Jan 11, 2018
1 parent 2ae56c3 commit 079e1cb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/common/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"
"reflect"
"runtime"
"strings"
"testing"
)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 079e1cb

Please sign in to comment.