Debian Codegraph @

test/integration/targets/ansible-test-sanity-pylint/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -eu
4
5 source ../collection/setup.sh
6
7 # Verify deprecation checking works for normal releases and pre-releases.
8
9 for version in 2.0.0 2.0.0-dev0; do
10 echo "Checking version: ${version}"
11 sed "s/^version:.*\$/version: ${version}/" < galaxy.yml > galaxy.yml.tmp
12 mv galaxy.yml.tmp galaxy.yml
13 ansible-test sanity --test pylint --color --failure-ok --lint "${@}" 1> actual-stdout.txt 2> actual-stderr.txt
14 diff -u "${TEST_DIR}/expected.txt" actual-stdout.txt
15 grep -f "${TEST_DIR}/expected.txt" actual-stderr.txt
16 done
17
18 echo "PASS"