Commit 69d6b11
committed
test/system: Optimize the help tests
The system tests can be very I/O intensive, because many of them copy
OCI images from the test suite's image cache directory to its local
container/storage store, create containers, and then delete everything
to run the next test with a clean slate. This makes them slow.
The tests for toolbox(1) invocations forwarded to the host, which
includes the help tests, are particularly slow because they never skip
the I/O. This makes them a good target for optimizations.
The help tests for toolbox(1) invocations forwarded to the host use the
same default Toolbx container to invoke toolbox(1) from without changing
its state. Therefore, a lot of disk I/O can be avoided by creating the
default container only once for all those tests.
This can reduce the time needed to run the help tests from almost 7
minutes to a few seconds.
#16351 parent a062224 commit 69d6b11
1 file changed
+3
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
130 | | - | |
131 | | - | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
| |||
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
154 | | - | |
155 | | - | |
156 | 153 | | |
157 | 154 | | |
158 | 155 | | |
| |||
175 | 172 | | |
176 | 173 | | |
177 | 174 | | |
178 | | - | |
179 | | - | |
180 | 175 | | |
181 | 176 | | |
182 | 177 | | |
| |||
199 | 194 | | |
200 | 195 | | |
201 | 196 | | |
202 | | - | |
203 | | - | |
204 | 197 | | |
205 | 198 | | |
206 | 199 | | |
| |||
223 | 216 | | |
224 | 217 | | |
225 | 218 | | |
226 | | - | |
227 | | - | |
228 | 219 | | |
229 | 220 | | |
230 | 221 | | |
| |||
247 | 238 | | |
248 | 239 | | |
249 | 240 | | |
250 | | - | |
251 | | - | |
252 | 241 | | |
253 | 242 | | |
254 | 243 | | |
| |||
271 | 260 | | |
272 | 261 | | |
273 | 262 | | |
274 | | - | |
275 | | - | |
276 | 263 | | |
277 | 264 | | |
278 | 265 | | |
| |||
295 | 282 | | |
296 | 283 | | |
297 | 284 | | |
298 | | - | |
299 | | - | |
300 | 285 | | |
301 | 286 | | |
302 | 287 | | |
| |||
319 | 304 | | |
320 | 305 | | |
321 | 306 | | |
322 | | - | |
323 | | - | |
324 | 307 | | |
325 | 308 | | |
326 | 309 | | |
| |||
343 | 326 | | |
344 | 327 | | |
345 | 328 | | |
346 | | - | |
347 | | - | |
348 | 329 | | |
349 | 330 | | |
350 | 331 | | |
| |||
0 commit comments