2017-01-09 00:21:13 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
constraints=$(
|
|
|
|
grep '.' test/runner/requirements/*.txt \
|
2017-04-27 03:21:11 +00:00
|
|
|
| grep -v '(sanity_ok)$' \
|
2017-01-09 00:21:13 +00:00
|
|
|
| sed 's/ *;.*$//; s/ #.*$//' \
|
|
|
|
| grep -v '/constraints.txt:' \
|
2017-10-20 15:48:01 +00:00
|
|
|
| grep -v '/integration.cloud.azure.txt:' \
|
2017-01-09 00:21:13 +00:00
|
|
|
| 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
|