test(scripts): cover a failing venv and name the extra collections path

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-11-24 07:25:10 +00:00
1 parent 8c52c91dfd
commit 1d28f1a8bc
2 files changed
+6 -5

No files matched your search

+3 -3
View File
@@ -11,7 +11,7 @@ set -euo pipefail
selected="$(cat)"
pins="$AC_ROOT/pins"
collections=""
extra_collections=""
if sha256sum --quiet -c /opt/ci-pins.sha256; then
echo "The pin files match the ci image; using the baked tools."
else
@@ -24,11 +24,11 @@ else
ANSIBLE_COLLECTIONS_PATH="$pins/collections" \
ansible-galaxy collection install --force -r "$req" -p "$pins/collections"
done
collections="$pins/collections:"
extra_collections="$pins/collections:"
fi
ansible --version
molecule --version
# The collection under test first; molecule also installs it into each scenario's ANSIBLE_HOME,
# which the run script keeps in the job tree.
export ANSIBLE_COLLECTIONS_PATH="$AC_ROOT:$collections/opt/collections"
export ANSIBLE_COLLECTIONS_PATH="$AC_ROOT:${extra_collections}/opt/collections"
exec scripts/run_molecule_scenarios.sh "$AC_ROOT/molecule-runs" <<< "$selected"