Commit c0f36d0
committed
inttests: kill test runner containers faster
Previously, each test scenario would wait 10 seconds to remove the test
container. This is because the test containers use 'sleep' as the
entrypoint. Sleep doesn't have SIGTERM handling, so when it runs as
PID 1, SIGTERM doesn't do anything and the container engine resorts to
SIGKILL after 10 seconds.
Kill test runner containers immediately (without the 10 second wait) if
they use --entrypoint sleep. This greatly speeds up integration tests.
Signed-off-by: Adam Cmiel <acmiel@redhat.com>1 parent 1d3c39e commit c0f36d0
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
108 | 113 | | |
109 | 114 | | |
110 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
| |||
226 | 235 | | |
227 | 236 | | |
228 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
229 | 241 | | |
230 | 242 | | |
231 | 243 | | |
| |||
258 | 270 | | |
259 | 271 | | |
260 | 272 | | |
261 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
262 | 279 | | |
263 | 280 | | |
264 | 281 | | |
| |||
0 commit comments