Skip to content

Commit

Permalink
One more try for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
achew22 committed Jun 9, 2020
1 parent fab8811 commit eb280c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gazelle/gazelle_test.go
Expand Up @@ -33,11 +33,11 @@ var gazellePath = findGazelle()
// directory in `testdata/*`. Please see `testdata/README.md` for more
// information on each test.
func TestGazelleBinary(t *testing.T) {
runfilesPath, err := bazel.RunfilesPath()
readmePath, err := bazel.Runfile("gazelle/testdata/README.md")
if err != nil {
t.Fatalf("bazel.RunfilesPath() error: %v", err)
}
testdata := filepath.Join(runfilesPath, "gazelle", "testdata")
testdata := filepath.Dir(readmePath)
ds, err := ioutil.ReadDir(testdata)
if err != nil {
t.Fatalf("ioutil.ReadDir(%q) error: %v", testdata, err)
Expand Down Expand Up @@ -72,6 +72,7 @@ func testPath(testdata string, dir string) func(t *testing.T) {

// Now trim the common prefix off.
newPath := strings.TrimPrefix(path, filepath.Join(testdata, dir)+"/")
t.Logf("newPath %q, path %q, testdata %q, dir %q", newPath, path, testdata, dir)

if strings.HasSuffix(newPath, ".in") {
inputs = append(inputs, testtools.FileSpec{
Expand Down

0 comments on commit eb280c9

Please sign in to comment.