kola/tests/docker: make oldclient arch-aware
@@ -26,11 +26,13 @@ import (
"golang.org/x/crypto/ssh"
"golang.org/x/net/context"
+ "github.com/coreos/mantle/kola"
"github.com/coreos/mantle/kola/cluster"
"github.com/coreos/mantle/kola/register"
"github.com/coreos/mantle/kola/skip"
"github.com/coreos/mantle/lang/worker"
"github.com/coreos/mantle/platform"
+ "github.com/coreos/mantle/platform/machine/qemu"
)
var (
@@ -254,6 +256,10 @@ func dockerNetwork(c cluster.TestCluster) error {
// Regression test for https://github.com/coreos/bugs/issues/1569 and
// https://github.com/coreos/docker/pull/31
func dockerOldClient(c cluster.TestCluster) error {
+ if _, ok := c.Cluster.(*qemu.Cluster); ok && kola.QEMUOptions.Board != "amd64-usr" {
+ return skip.Skip("Only applicable to amd64")
+ }
+
oldclient := "/usr/lib/kola/amd64/docker-1.9.1"
if _, err := os.Stat(oldclient); err != nil {
return skip.Skip(fmt.Sprintf("Can't find old docker client to test: %v", err))
