mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
434 B
Bash
16 lines
434 B
Bash
8 years ago
|
#!/bin/sh
|
||
|
|
||
|
constraints=$(
|
||
|
grep '.' test/runner/requirements/*.txt \
|
||
|
| sed 's/ *;.*$//; s/ #.*$//' \
|
||
|
| grep -v '/constraints.txt:' \
|
||
|
| grep '[<>=]'
|
||
|
)
|
||
|
|
||
|
if [ "${constraints}" ]; then
|
||
|
echo 'Constraints for test requirements should be in "test/runner/requirements/constraints.txt".'
|
||
|
echo 'The following constraints were found outside the "constraints.txt" file:'
|
||
|
echo "${constraints}"
|
||
|
exit 1
|
||
|
fi
|