From 1beca93288af925309041f37a9ae1a1f64dfa27d Mon Sep 17 00:00:00 2001 From: Lee Garrett Date: Sun, 17 Nov 2024 18:49:52 +0100 Subject: [PATCH] Don't fail when ansible-galaxy integration test runs as non-root --- test/integration/targets/ansible-galaxy/runme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/targets/ansible-galaxy/runme.sh b/test/integration/targets/ansible-galaxy/runme.sh index fcd826c3387..1da2b0dec98 100755 --- a/test/integration/targets/ansible-galaxy/runme.sh +++ b/test/integration/targets/ansible-galaxy/runme.sh @@ -526,7 +526,7 @@ f_ansible_galaxy_status \ ansible-galaxy collection list -p ~/.ansible/collections | tee out.txt - [[ $(grep -c '# /root/.ansible/collections/ansible_collections' out.txt) -eq 1 ]] + [[ $(grep -c "# ${HOME}/.ansible/collections/ansible_collections" out.txt) -eq 1 ]] f_ansible_galaxy_status \ "collection list invalid collection name"