os-autoinst-distri-rocky-mi.../lib
Adam Williamson 0999921fe3 Tweak detection of installed update packages
Previously we were relying on `rpm -q` always outputting the
right package last. We saw some test failures on recent kernel
updates, e.g. https://openqa.fedoraproject.org/tests/658768 ,
which indicate this isn't always the case; there the 'right'
package was second of three for kernel, third of three for
kernel-core and first of three for kernel-modules. So we need to
make it more robust. This uses an additional call:
`rpm -q $pkg --last | head -1` to find the most recent package,
if there are more than one; this should always be the right one,
I hope. Note we cannot just add `--last` to the `rpm -q --qf...`
call because the output when you do that is weird; you get the
output you'd get if you just called `rpm -q --last` first, and
*then* the query-formatted output afterwards (though with the
modified order as expected). There doesn't seem to be any way to
get only the latter.

I also tweaked the log uploading so we always upload the working
logs even when the test passes; it can't hurt anything and it is
sometimes useful to have them.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-09-08 14:03:23 -07:00
..
anaconda.pm Finish the post review changes. 2020-05-28 13:32:42 -07:00
anacondatest.pm Add perl syntax check test, add it to CI 2020-02-13 15:28:09 -08:00
cockpit.pm Update cockpit needles and select_cockpit_update for 220 2020-05-30 10:27:20 -07:00
fedoradistribution.pm Add perl syntax check test, add it to CI 2020-02-13 15:28:09 -08:00
freeipa.pm Great Needle Cleanup 2020 2020-03-20 14:02:10 -07:00
installedtest.pm post_fail_hook: upload PostgreSQL init log if it exists 2020-08-25 16:18:32 -07:00
packagetest.pm Replace remaining wait_idles with sleeps 2020-01-02 17:44:45 -08:00
tapnet.pm Use nmcli for static network stuff, not ifcfg files 2020-09-02 14:49:29 -07:00
utils.pm Tweak detection of installed update packages 2020-09-08 14:03:23 -07:00