Skip to content

Commit

Permalink
Bug fix: can't run "kubetest --build" on Arm64 platform
Browse files Browse the repository at this point in the history
Signed-off-by: Bin Lu <bin.lu@arm.com>
  • Loading branch information
Bin Lu committed Jan 17, 2019
1 parent 398b344 commit 992ec61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kubetest/build.go
Expand Up @@ -19,6 +19,7 @@ package main
import (
"fmt"
"os/exec"
"runtime"

"k8s.io/test-infra/kubetest/util"
)
Expand All @@ -42,7 +43,11 @@ func (b *buildStrategy) String() string {
// Set to --build=B or buildDefault if just --build
func (b *buildStrategy) Set(value string) error {
if value == "true" { // just --build, choose default
value = buildDefault
if runtime.GOARCH == "amd64" {
value = buildDefault
} else {
value = "host-go"
}
}
switch value {
case "bazel", "e2e", "host-go", "quick", "release":
Expand Down

0 comments on commit 992ec61

Please sign in to comment.