Commit d01fe01
committed
Include livepatches variables in openqa.cmd
Automate the livepatch isos posts. Due to the logic of the script generation
this commit contains an injection of a for loop for all the livepatches which
will be found in the spdx.json, after the sync in the server.
- the loop always run even if no livepatches found. However it will only
append to the isos posts the variable in the case that actually livepatch
versions inclue in the array. The approach is just a bit dirty, as any other
approach would require further and bigger changes.
- The injection is in the `rsync_iso` after all the necessary variables are
set and before the beginning writing to the print_openqa.sh. At that point the
`spdx.json` should be available and it needs only to grep for the
_kernel_livepatch_ in the server. Before that point, the scriptgen.py would
have to make a request to each repo in the dist.s.d and it is likely it would
be less flexible as the logic of the _isos post_ is mainly in the generated
`print_openqa.sh`.
depends-on: https://gitlab.suse.de/openqa/openqa-trigger-from-ibs-plugin/-/merge_requests/263
issue: https://progress.opensuse.org/issues/188613
Signed-off-by: Ioannis Bonatakis <[email protected]>1 parent 5ea66e4 commit d01fe01
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
| 313 | + | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
| |||
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
| 330 | + | |
329 | 331 | | |
330 | 332 | | |
331 | 333 | | |
| |||
342 | 344 | | |
343 | 345 | | |
344 | 346 | | |
| 347 | + | |
345 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
346 | 353 | | |
347 | 354 | | |
348 | 355 | | |
| |||
0 commit comments