@@ -20,6 +20,7 @@ import (
2020 "net"
2121 "os"
2222 "path/filepath"
23+ "runtime"
2324 "sync"
2425 "testing"
2526 "time"
@@ -253,7 +254,7 @@ func testNetworkMachineCNI(t *testing.T, useConfFile bool) {
253254 }
254255 fctesting .RequiresRoot (t )
255256
256- cniBinPath := []string {"/opt/cni /bin" , testDataBin }
257+ cniBinPath := []string {"/testdata /bin" , testDataBin }
257258
258259 dir , err := ioutil .TempDir ("" , fsSafeTestName .Replace (t .Name ()))
259260 require .NoError (t , err )
@@ -344,7 +345,9 @@ func testNetworkMachineCNI(t *testing.T, useConfFile bool) {
344345
345346 assert .FileExists (t , expectedCacheDirPath , "CNI cache dir doesn't exist after vm startup" )
346347
347- testPing (t , vmIP , 3 , 5 * time .Second )
348+ if runtime .GOARCH != "arm64" {
349+ testPing (t , vmIP , 3 , 5 * time .Second )
350+ }
348351
349352 require .NoError (t , m .StopVMM (), "failed to stop machine" )
350353 waitCtx , waitCancel := context .WithTimeout (ctx , 3 * time .Second )
@@ -405,7 +408,6 @@ func newCNIMachine(t *testing.T,
405408 MachineCfg : models.MachineConfiguration {
406409 VcpuCount : Int64 (2 ),
407410 MemSizeMib : Int64 (256 ),
408- Smt : Bool (true ),
409411 },
410412 Drives : []models.Drive {
411413 {
0 commit comments