use ./tool/go

Change-Id: Idc737e816469e46dc5898ae4362cb224404db736
Signed-off-by: Tom Proctor <tomhjp@users.noreply.github.com>
This commit is contained in:
Tom Proctor 2026-01-28 20:13:49 +00:00
parent 00a149a9b0
commit ba03f4a6b8
No known key found for this signature in database
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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)