cmd/go: fix TestScript/vet_asm for OS without amd64

Add GOOS=linux to vet_asm script to avoid errors on OS not working on
amd64 architecture.

Change-Id: Ic3db43618008ae8e8bc08738c95c200dd4e916d7
Reviewed-on: https://go-review.googlesource.com/c/149577
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Alan Donovan <adonovan@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Clément Chigot 2018-11-14 15:25:59 +01:00 committed by Alan Donovan
parent 6d620fc42e
commit 0a72e8eefb
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
# Issue 27665. Verify that "go vet" analyzes non-Go files.
env GOOS=linux
env GOARCH=amd64
! go vet -asmdecl a
stderr 'f: invalid MOVW of x'