Skip to content

Commit

Permalink
copyright: don't require checkout to be named tools
Browse files Browse the repository at this point in the history
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 <gobot@golang.org>
Auto-Submit: Heschi Kreinick <heschi@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Heschi Kreinick <heschi@google.com>
  • Loading branch information
heschi authored and gopherbot committed Apr 27, 2023
1 parent 94ed378 commit 9e0a7b1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions copyright/copyright_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,12 @@
package copyright

import (
"os"
"path/filepath"
"strings"
"testing"
)

func TestToolsCopyright(t *testing.T) {
cwd, err := os.Getwd()
if err != nil {
t.Fatal(err)
}
tools := filepath.Dir(cwd)
if !strings.HasSuffix(filepath.Base(tools), "tools") {
t.Fatalf("current working directory is %s, expected tools", tools)
}
files, err := checkCopyright(tools)
files, err := checkCopyright("..")
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 9e0a7b1

Please sign in to comment.