From cb1cdd8fda64cecf65366c45cb2de4fa7136a5d2 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Fri, 27 Nov 2020 23:26:39 -0500 Subject: [PATCH] Only install needed packages and ignore failure If the missing package was needed, it will fail later anyway. --- run-tests | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run-tests b/run-tests index 74cf70a6..59c96eb4 100755 --- a/run-tests +++ b/run-tests @@ -4,11 +4,11 @@ set -eu unset CLEANUP_LVM name DEFAULT_LVM_POOL retcode install_rpm_deps () { local applications - applications=(lvm2 python3-inotify python3-sphinx python3-docutils - python3-pyyaml python3-jinja2 python3-lxml python3-pylint - python3-coverage btrfs-progs vim-common) + applications=(lvm2 python3-docutils python3-pyyaml python3-jinja2 + python3-lxml btrfs-progs vim-common) rpm -q --quiet -- "${applications[@]}" || - sudo dnf -- install "${applications[@]}" + sudo dnf -- install "${applications[@]}" || + : # we don’t actually care if this succeeds } if { command -pv rpm && command -pv dnf; }>/dev/null; then install_rpm_deps; fi CLEANUP_LVM=