coreos / coreos-assembler

Tooling container to assemble CoreOS-like systems
https://coreos.github.io/coreos-assembler/
Apache License 2.0
335 stars 165 forks source link

kola: support relative indices for `--build` arg #3831

Closed jlebon closed 2 months ago

jlebon commented 2 months ago

I often want to target the previous build when e.g. doing cosa run or kola testiso to compare between an older and newer build.

Instead of having to copy/paste the previous build ID, let's support passing negative indices like -1 for the previous build, -2 for the one before that, etc...

This is similar to the journalctl --boot N syntax.