Run failpoints tests only for runc

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko 2024-02-15 10:28:58 -08:00
parent 00fe7a4974
commit 7cf8a00c77
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -1426,8 +1426,8 @@ func TestShimOOMScore(t *testing.T) {
// status after container.NewTask. It's used to simulate that the runc-init // status after container.NewTask. It's used to simulate that the runc-init
// might be killed by oom-kill. // might be killed by oom-kill.
func TestIssue9103(t *testing.T) { func TestIssue9103(t *testing.T) {
if os.Getenv("RUNC_FLAVOR") == "crun" { if f := os.Getenv("RUNC_FLAVOR"); f != "" && f != "runc" {
t.Skip("skip it when using crun") t.Skip("test requires runc")
} }
client, err := newClient(t, address) client, err := newClient(t, address)

View File

@ -795,8 +795,8 @@ func TestKillContainerDeletedByRunc(t *testing.T) {
// We skip this case when runtime is crun. // We skip this case when runtime is crun.
// More information in https://github.com/containerd/containerd/pull/4214#discussion_r422769497 // More information in https://github.com/containerd/containerd/pull/4214#discussion_r422769497
if os.Getenv("RUNC_FLAVOR") == "crun" { if f := os.Getenv("RUNC_FLAVOR"); f != "" && f != "runc" {
t.Skip("skip it when using crun") t.Skip("test requires runc")
} }
client, err := newClient(t, address) client, err := newClient(t, address)