From eca999be4affa08234a51c70bbaabe5b5e68c559 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Fri, 22 May 2020 14:03:46 -0500 Subject: [PATCH] Add sudo to dnf list command Bringing over the fix from ansible-osbuild --- schutzbot/run_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schutzbot/run_tests.sh b/schutzbot/run_tests.sh index 899b36c9b..c995fc0fc 100755 --- a/schutzbot/run_tests.sh +++ b/schutzbot/run_tests.sh @@ -16,7 +16,7 @@ priority=5 EOF # Verify that the repository we added is working properly. -dnf list all | grep osbuild-mock +sudo dnf list all | grep osbuild-mock # Create temporary directories for Ansible. sudo mkdir -vp /opt/ansible_{local,remote} @@ -61,4 +61,4 @@ ansible-playbook \ schutzbot/test.yml # Collect the systemd journal anyway if we made it all the way to the end. -sudo journalctl --after-cursor=${JOURNALD_CURSOR} > systemd-journald.log \ No newline at end of file +sudo journalctl --after-cursor=${JOURNALD_CURSOR} > systemd-journald.log