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.
ansible/test/integration/targets/throttle/runme.sh

17 lines
543 B
Bash

#!/usr/bin/env bash
set -eux
# https://github.com/ansible/ansible/pull/42528
export SELECTED_STRATEGY
for strategy in linear free; do
SELECTED_STRATEGY="${strategy}"
ansible-playbook non_integer_throttle.yml -i inventory "$@" 2>&1 | grep "Failed to convert the throttle value to an integer: invalid literal for int"
ansible-playbook undefined_throttle.yml -i inventory "$@" 2>&1 | grep "Failed to convert the throttle value to an integer: 'nope' is undefined"
ansible-playbook test_throttle.yml -i inventory --forks 12 "$@"
done