1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-08 04:57:16 +00:00
community.general/tests/utils/list-remotes
patchback[bot] 66d394dc81
[PR #11686/68ae04a9 backport][stable-12] Cleanup of aliases skip statements (#11709)
Cleanup of `aliases` skip statements (#11686)

* add scripts to clean aliases' skips

* remove legacy skips

* code cosmetics

* add license to ALIASES.md

* Fix typos in ALIASES.md documentation

* rolling back freebsd14.2 and 14.3 in iso_extract

* fix versions and re-run

(cherry picked from commit 68ae04a95a)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
2026-03-30 19:58:13 +02:00

29 lines
883 B
Bash
Executable file

#!/bin/sh
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
SUPPORTED_AC2="17 18 19 20"
[ -z "$1" ] && {
echo 'usage: ./tests/utils/list-remotes <ansible git repo dir>' >&2
exit 1
}
ansible_repo_dir="$1"
(
cd "$ansible_repo_dir"
versions=$(
for minor in $SUPPORTED_AC2; do
echo v2.$minor.$(git tag -l | awk -F. "\$2 == $minor && /v2\.[0-9]+\.[0-9]+$/ { print \$3 }" | sort -rn | head -1)
done
)
versions="$versions devel"
echo "Listing remotes from ansible-core:" $versions >&2
for head in $versions; do
git checkout -q $head
cat test/lib/ansible_test/_data/completion/remote.txt
done | awk '/[a-z]+(\/[0-9]+)?/ { print $1 }' | sort -u | sed -e s'/\///g'
)