From 38785afe9fec071d0ef02c020d533942e8a22c0c Mon Sep 17 00:00:00 2001 From: Yariv Rachmani Date: Thu, 12 Sep 2024 04:01:01 +0300 Subject: [PATCH] Adding fix in qm cleanup for disk tests During the work of post install /var/qm partition podman rmi throws error on cleanup. This error fails the tests Signed-off-by: Yariv Rachmani --- tests/ffi/disk/test.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/ffi/disk/test.sh b/tests/ffi/disk/test.sh index da13d8ed..931d6ad7 100644 --- a/tests/ffi/disk/test.sh +++ b/tests/ffi/disk/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash -euvx +#!/bin/bash -evx # shellcheck disable=SC1091 @@ -36,5 +36,6 @@ fi ls -lh /root/file.lock -disk_cleanup - +# Calling cleanup QM directorly to workaround exit code once +# /var/qm disk is full. +podman exec -it qm /bin/bash -c 'podman rmi -i -f --all; echo $?'