diff options
| author | Elias Naur <mail@eliasnaur.com> | 2019-03-12 16:21:43 +0100 |
|---|---|---|
| committer | Elias Naur <mail@eliasnaur.com> | 2019-03-12 15:47:18 +0000 |
| commit | 10aede26d0603c16f6f66c87a84bccfeb2e0c8e0 (patch) | |
| tree | f37aa9a0f43ac45baa54fdcb930119b431d9f709 /src/bytes/bytes_test.go | |
| parent | d6891bd480b664afe4e2f4a0a0a72324943859f3 (diff) | |
| download | go-10aede26d0603c16f6f66c87a84bccfeb2e0c8e0.tar.xz | |
misc/android: fix detection of GOROOT tests
strings.HasPrefix is not good enough to determine whether a path
is a subdirectory of another because it does not respect path
boundaries. filepath.Rel is good eonugh as long as we filter out results
that use parent directories, "..".
Hopefully fix the android emulator builders on the subrepositories.
Change-Id: I17ee7e0028c0b0b26a6c5f67629f53c9a660c6e5
Reviewed-on: https://go-review.googlesource.com/c/go/+/167117
Run-TryBot: Elias Naur <mail@eliasnaur.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/bytes/bytes_test.go')
0 files changed, 0 insertions, 0 deletions
