Skip to content

Commit

Permalink
Fix architecture check and vm zone in storage perf. (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-crate authored Oct 13, 2023
1 parent 053af70 commit 45a6862
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imagetest/test_suites/storageperf/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func TestSetup(t *imagetest.TestWorkflow) error {

vm, err := t.CreateTestVMMultipleDisks(
[]*compute.Disk{&bootDisk, &mountDisk},
map[string]string{"machineType": tc.machineType, "minCpuPlatform": tc.minCPUPlatform},
map[string]string{"machineType": tc.machineType, "minCpuPlatform": tc.minCPUPlatform, "zone": tc.zone},
)
if err != nil {
return err
Expand Down Expand Up @@ -170,7 +170,7 @@ func TestSetup(t *imagetest.TestWorkflow) error {
}

func skipTest(tc storagePerfTest, image string) bool {
if tc.arch == "ARM64" && !strings.Contains(image, "arm64") {
if (strings.Contains(image, "arm64") && tc.arch != "ARM64") || (!strings.Contains(image, "arm64") && tc.arch == "ARM64") {
return true
}
if strings.HasPrefix(tc.machineType, "c3d") && (strings.Contains(image, "windows-2012") || strings.Contains(image, "windows-2016")) {
Expand Down

0 comments on commit 45a6862

Please sign in to comment.