mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-27 12:06:31 -08:00
use ./tool/go
Change-Id: Idc737e816469e46dc5898ae4362cb224404db736 Signed-off-by: Tom Proctor <[email protected]>
This commit is contained in:
2 files changed
+11
-1
No files matched your search
@@ -267,7 +267,11 @@ jobs:
|
||||
|
||||
- name: build test wrapper
|
||||
working-directory: ${{ github.workspace }}/src
|
||||
run: go build -o ${{ github.workspace }}/testwrapper.exe ./cmd/testwrapper
|
||||
run: ./tool/go build -o ${{ github.workspace }}/testwrapper.exe ./cmd/testwrapper
|
||||
|
||||
- name: Set PATH for ./tool/go
|
||||
shell: bash
|
||||
run: echo "${{ github.workspace }}/src/tool" >> $GITHUB_PATH
|
||||
|
||||
- name: test
|
||||
if: matrix.key != 'win-bench' # skip on bench builder
|
||||
|
||||
@@ -203,6 +203,12 @@ func runTests(ctx context.Context, attempt int, pt *packageTests, goTestArgs, te
|
||||
}
|
||||
|
||||
func main() {
|
||||
versionOutput, err := exec.Command("go", "version").CombinedOutput()
|
||||
if err != nil {
|
||||
log.Fatalf("testwrapper: failed to get go version: %v", err)
|
||||
}
|
||||
fmt.Printf("testwrapper: using %s", versionOutput)
|
||||
|
||||
goTestArgs, packages, testArgs, err := splitArgs(os.Args[1:])
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
||||
Reference in new issue
Block a user