@ -186,12 +186,14 @@ blocks: setup
rm -f block_test.out
rm -f block_test.out
# run the test and check to make sure the right number of completions was logged
# run the test and check to make sure the right number of completions was logged
ansible-playbook -vv -e outputdir = $( TEST_DIR) test_blocks/main.yml | tee block_test.out
ansible-playbook -vv -e outputdir = $( TEST_DIR) test_blocks/main.yml | tee block_test.out
[ " $$ (grep 'TEST COMPLETE' block_test.out | wc -l) " = " $$ (egrep '^[0-9]+ plays in' block_test.out | cut -f1 -d' ') " ]
sed -r 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g' block_test.out >block_test_wo_colors.out
[ " $$ (grep 'TEST COMPLETE' block_test.out | wc -l) " = " $$ (egrep '^[0-9]+ plays in' block_test_wo_colors.out | cut -f1 -d' ') " ]
# cleanup the output log again, to make sure the test is clean
# cleanup the output log again, to make sure the test is clean
rm -f block_test.out
rm -f block_test.out block_test_wo_colors.out
# run test with free strategy and again count the completions
# run test with free strategy and again count the completions
ansible-playbook -vv -e outputdir = $( TEST_DIR) test_blocks/main.yml -e test_strategy = free | tee block_test.out
ansible-playbook -vv -e outputdir = $( TEST_DIR) test_blocks/main.yml -e test_strategy = free | tee block_test.out
[ " $$ (grep 'TEST COMPLETE' block_test.out | wc -l) " = " $$ (egrep '^[0-9]+ plays in' block_test.out | cut -f1 -d' ') " ]
sed -r 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g' block_test.out >block_test_wo_colors.out
[ " $$ (grep 'TEST COMPLETE' block_test.out | wc -l) " = " $$ (egrep '^[0-9]+ plays in' block_test_wo_colors.out | cut -f1 -d' ') " ]
cloud : amazon rackspace azure
cloud : amazon rackspace azure