Skip to content

Commit 7020f93

Browse files
fix: skip blkio test in vm (runfinch#256)
Signed-off-by: Shubharanshu Mahapatra <[email protected]>
1 parent 350ae05 commit 7020f93

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

e2e/tests/container_create.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"net/http"
1111
"os"
1212
"path/filepath"
13+
"runtime"
1314
"strconv"
1415
"strings"
1516
"time"
@@ -797,6 +798,11 @@ func ContainerCreate(opt *option.Option, pOpt util.NewOpt) {
797798
})
798799

799800
It("should create container with specified blkio settings options", func() {
801+
// Skip if not running on Linux
802+
if runtime.GOOS != "linux" {
803+
Skip("Blkio settings are only supported on Linux")
804+
}
805+
800806
// Create dummy device paths
801807
dummyDev1 := "/dev/dummy-zero1"
802808
dummyDev2 := "/dev/dummy-zero2"

0 commit comments

Comments
 (0)