Commit 8a22823
committed
AZP: Skip RPM install dry-run when rpm db is unreadable
On euleros2sp12 and kylin10sp3 the system rpm db at /var/lib/rpm is
locked down for non-root, so 'rpm -Uvh --test' fails when opening the
db before it can validate the package. Probe with 'rpm -q rpm' and
skip the install test when the db is unreadable, so the check still
runs everywhere it can without hard-failing the build on those two
distros. Also mark the task as SucceededWithIssues so the skip
surfaces as a yellow row in the build summary instead of hiding
behind a green pass.
Signed-off-by: Alexey Rivkin <arivkin@nvidia.com>1 parent 9412dd6 commit 8a22823
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| |||
0 commit comments