Skip to content

Commit 9e0a7b1

Browse files
heschigopherbot
authored andcommitted
copyright: don't require checkout to be named tools
The directory isn't named 'tools' on LUCI. Change-Id: Ia91a77b924704496491bdf4e8306c9ac139f9f57 Reviewed-on: https://go-review.googlesource.com/c/tools/+/489755 TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Heschi Kreinick <[email protected]> Reviewed-by: Robert Findley <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Heschi Kreinick <[email protected]>
1 parent 94ed378 commit 9e0a7b1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

copyright/copyright_test.go

+1-11
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,12 @@
88
package copyright
99

1010
import (
11-
"os"
12-
"path/filepath"
1311
"strings"
1412
"testing"
1513
)
1614

1715
func TestToolsCopyright(t *testing.T) {
18-
cwd, err := os.Getwd()
19-
if err != nil {
20-
t.Fatal(err)
21-
}
22-
tools := filepath.Dir(cwd)
23-
if !strings.HasSuffix(filepath.Base(tools), "tools") {
24-
t.Fatalf("current working directory is %s, expected tools", tools)
25-
}
26-
files, err := checkCopyright(tools)
16+
files, err := checkCopyright("..")
2717
if err != nil {
2818
t.Fatal(err)
2919
}

0 commit comments

Comments
 (0)