Browse Source

Skip migration unit test on non amd64 platform

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Kenfe-Mickael Laventure 9 years ago
parent
commit
cf73ebf280
1 changed files with 6 additions and 0 deletions
  1. 6 0
      migrate/v1/migratev1_test.go

+ 6 - 0
migrate/v1/migratev1_test.go

@@ -67,6 +67,9 @@ func TestMigrateContainers(t *testing.T) {
 	if runtime.GOOS == "windows" {
 		t.Skip("Failing on Windows")
 	}
+	if runtime.GOARCH != "amd64" {
+		t.Skip("Test tailored to amd64 architecture")
+	}
 	tmpdir, err := ioutil.TempDir("", "migrate-containers")
 	if err != nil {
 		t.Fatal(err)
@@ -142,6 +145,9 @@ func TestMigrateImages(t *testing.T) {
 	if runtime.GOOS == "windows" {
 		t.Skip("Failing on Windows")
 	}
+	if runtime.GOARCH != "amd64" {
+		t.Skip("Test tailored to amd64 architecture")
+	}
 	tmpdir, err := ioutil.TempDir("", "migrate-images")
 	if err != nil {
 		t.Fatal(err)