fix the hijacking test to be interruptible
@@ -61,8 +61,7 @@ var _ = Describe(":life [#129726125] Hijacked containers", func() {
"-j", "hijacked-containers-test/simple-job",
"-b", "1",
"-s", "simple-task",
- "--",
- "while true; do sleep 1; done",
+ "--", "/bin/sh", "-c", "while true; do sleep 1; done",
)
By("finishing the build")
@@ -136,7 +135,7 @@ var _ = Describe(":life [#129726125] Hijacked containers", func() {
hijackSession := spawnFly(
"hijack",
"-c", "hijacked-resource-test/tick-tock",
- "--", "while true; do sleep 1; done",
+ "--", "/bin/sh", "-c", "while true; do sleep 1; done",
)
By("reconfiguring pipeline without resource")
