From d4c8f74ee47f29d1c76d4f9d9c98386a3cfe0b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Wed, 24 Jul 2024 16:35:46 +0200 Subject: [PATCH] Tests/regression-satellite: fix permission denied error in cleanup() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cleanup() function cats the httpd log and error file, but did not use sudo, which failed on permissions. Fix that. Signed-off-by: Tomáš Hozza --- .../regression-composer-works-behind-satellite-fallback.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cases/regression-composer-works-behind-satellite-fallback.sh b/test/cases/regression-composer-works-behind-satellite-fallback.sh index ae72c193e..23682a582 100644 --- a/test/cases/regression-composer-works-behind-satellite-fallback.sh +++ b/test/cases/regression-composer-works-behind-satellite-fallback.sh @@ -83,8 +83,8 @@ function cleanup { set +eu greenprint "Display httpd logs" - cat /var/log/httpd/access_log - cat /var/log/httpd/error_log + sudo cat /var/log/httpd/access_log + sudo cat /var/log/httpd/error_log greenprint "Putting things back to their previous configuration"