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) {
1426
1426
// status after container.NewTask. It's used to simulate that the runc-init
1427
1427
// might be killed by oom-kill.
1428
1428
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 " )
1431
1431
}
1432
1432
1433
1433
client , err := newClient (t , address )
Original file line number Diff line number Diff line change @@ -795,8 +795,8 @@ func TestKillContainerDeletedByRunc(t *testing.T) {
795
795
796
796
// We skip this case when runtime is crun.
797
797
// 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 " )
800
800
}
801
801
802
802
client , err := newClient (t , address )
You can’t perform that action at this time.
0 commit comments