Replace fallocate with dd in e2e tests

This commit is contained in:
Lars Ekman 2022-07-23 17:22:49 +02:00
parent 5e14c5dfa9
commit e93f1161ea
2 changed files with 2 additions and 2 deletions

View File

@ -2408,7 +2408,7 @@ var _ = common.SIGDescribe("Services", func() {
// Create a pod in one node to get evicted // Create a pod in one node to get evicted
ginkgo.By("creating a client pod that is going to be evicted for the service " + serviceName) ginkgo.By("creating a client pod that is going to be evicted for the service " + serviceName)
evictedPod := e2epod.NewAgnhostPod(namespace, "evicted-pod", nil, nil, nil) evictedPod := e2epod.NewAgnhostPod(namespace, "evicted-pod", nil, nil, nil)
evictedPod.Spec.Containers[0].Command = []string{"/bin/sh", "-c", "sleep 10; fallocate -l 10M file; sleep 10000"} evictedPod.Spec.Containers[0].Command = []string{"/bin/sh", "-c", "sleep 10; dd if=/dev/zero of=file bs=1M count=10; sleep 10000"}
evictedPod.Spec.Containers[0].Name = "evicted-pod" evictedPod.Spec.Containers[0].Name = "evicted-pod"
evictedPod.Spec.Containers[0].Resources = v1.ResourceRequirements{ evictedPod.Spec.Containers[0].Resources = v1.ResourceRequirements{
Limits: v1.ResourceList{"ephemeral-storage": resource.MustParse("5Mi")}, Limits: v1.ResourceList{"ephemeral-storage": resource.MustParse("5Mi")},

View File

@ -315,7 +315,7 @@ var _ = SIGDescribe("Pods Extended", func() {
Name: "bar", Name: "bar",
Image: image, Image: image,
Command: []string{ Command: []string{
"/bin/sh", "-c", "sleep 10; fallocate -l 10M file; sleep 10000", "/bin/sh", "-c", "sleep 10; dd if=/dev/zero of=file bs=1M count=10; sleep 10000",
}, },
Resources: v1.ResourceRequirements{ Resources: v1.ResourceRequirements{
Limits: v1.ResourceList{ Limits: v1.ResourceList{