Skip to content

Commit df9c9bb

Browse files
committed
[Test] Prevent intermittent failure in test_patching_cluster by executing pkg manager cache commands with -y option to prevent interactive mode.
1 parent 49a0ca2 commit df9c9bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tests/integration-tests/tests/patching/test_patching/test_patching_cluster

tests/integration-tests/tests/patching/test_patching/test_patching_cluster/patch_node.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if command -v dnf >/dev/null 2>&1; then
4747
echo "Detected dnf package manager"
4848
fix_rpmdb
4949
sudo dnf clean all
50-
sudo dnf makecache --refresh || true
50+
sudo dnf makecache --refresh -y || true
5151
if [[ "${FLAVOUR}" == "minimal" ]]; then
5252
# Apply only security errata. Kernel packages are allowed to be upgraded.
5353
sudo dnf upgrade --security -y
@@ -59,7 +59,7 @@ elif command -v yum >/dev/null 2>&1; then
5959
echo "Detected yum package manager"
6060
fix_rpmdb
6161
sudo yum clean all
62-
sudo yum makecache || true
62+
sudo yum makecache -y || true
6363
if [[ "${FLAVOUR}" == "minimal" ]]; then
6464
# update-minimal --security applies the smallest set of security errata.
6565
# Kernel bumps are allowed (no --exclude=kernel*).

0 commit comments

Comments
 (0)