File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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.
14281428func 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 )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments