Skip to content

Commit 7cf8a00

Browse files
committed
Run failpoints tests only for runc
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent 00fe7a4 commit 7cf8a00

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

integration/client/container_linux_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,8 +1426,8 @@ func TestShimOOMScore(t *testing.T) {
14261426
// status after container.NewTask. It's used to simulate that the runc-init
14271427
// might be killed by oom-kill.
14281428
func TestIssue9103(t *testing.T) {
1429-
if os.Getenv("RUNC_FLAVOR") == "crun" {
1430-
t.Skip("skip it when using crun")
1429+
if f := os.Getenv("RUNC_FLAVOR"); f != "" && f != "runc" {
1430+
t.Skip("test requires runc")
14311431
}
14321432

14331433
client, err := newClient(t, address)

integration/client/container_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,8 @@ func TestKillContainerDeletedByRunc(t *testing.T) {
795795

796796
// We skip this case when runtime is crun.
797797
// More information in https://github.com/containerd/containerd/pull/4214#discussion_r422769497
798-
if os.Getenv("RUNC_FLAVOR") == "crun" {
799-
t.Skip("skip it when using crun")
798+
if f := os.Getenv("RUNC_FLAVOR"); f != "" && f != "runc" {
799+
t.Skip("test requires runc")
800800
}
801801

802802
client, err := newClient(t, address)

0 commit comments

Comments
 (0)