1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove FreeBSD interpreter test hacks. (#17007)

* Add TEST_FLAGS to no_log target.
This commit is contained in:
Matt Clay 2016-08-08 13:10:03 -07:00 committed by GitHub
parent ce282e9373
commit 80385a47bd
2 changed files with 4 additions and 9 deletions

View file

@ -49,21 +49,21 @@ includes: setup
pull: pull_run pull_no_127 pull_limit_inventory pull: pull_run pull_no_127 pull_limit_inventory
pull_run: pull_run:
ansible-pull -d $(MYTMPDIR) -U https://github.com/ansible-test-robinro/pull-integration-test.git | grep MAGICKEYWORD; \ ansible-pull -d $(MYTMPDIR) -U https://github.com/ansible-test-robinro/pull-integration-test.git $(TEST_FLAGS) | grep MAGICKEYWORD; \
RC=$$? ; \ RC=$$? ; \
rm -rf $(MYTMPDIR); \ rm -rf $(MYTMPDIR); \
exit $$RC exit $$RC
# test for https://github.com/ansible/ansible/issues/13681 # test for https://github.com/ansible/ansible/issues/13681
pull_no_127: pull_no_127:
ansible-pull -d $(MYTMPDIR) -U https://github.com/ansible-test-robinro/pull-integration-test.git | grep -v 127\.0\.0\.1; \ ansible-pull -d $(MYTMPDIR) -U https://github.com/ansible-test-robinro/pull-integration-test.git $(TEST_FLAGS) | grep -v 127\.0\.0\.1; \
RC=$$? ; \ RC=$$? ; \
rm -rf $(MYTMPDIR); \ rm -rf $(MYTMPDIR); \
exit $$RC exit $$RC
# test for https://github.com/ansible/ansible/issues/13688 # test for https://github.com/ansible/ansible/issues/13688
pull_limit_inventory: pull_limit_inventory:
ansible-pull -d $(MYTMPDIR) -U https://github.com/ansible-test-robinro/pull-integration-test.git; \ ansible-pull -d $(MYTMPDIR) -U https://github.com/ansible-test-robinro/pull-integration-test.git $(TEST_FLAGS); \
RC=$$? ; \ RC=$$? ; \
rm -rf $(MYTMPDIR); \ rm -rf $(MYTMPDIR); \
exit $$RC exit $$RC
@ -314,7 +314,7 @@ test_lookup_paths: setup
no_log: setup no_log: setup
# This test expects 7 loggable vars and 0 non loggable ones, if either mismatches it fails, run the ansible-playbook command to debug # This test expects 7 loggable vars and 0 non loggable ones, if either mismatches it fails, run the ansible-playbook command to debug
[ "$$(ansible-playbook no_log_local.yml -i $(INVENTORY) -e outputdir=$(TEST_DIR) -vvvvv | awk --source 'BEGIN { logme = 0; nolog = 0; } /LOG_ME/ { logme += 1;} /DO_NOT_LOG/ { nolog += 1;} END { printf "%d/%d", logme, nolog; }')" = "26/0" ] [ "$$(ansible-playbook no_log_local.yml -i $(INVENTORY) -e outputdir=$(TEST_DIR) $(TEST_FLAGS) -vvvvv | awk --source 'BEGIN { logme = 0; nolog = 0; } /LOG_ME/ { logme += 1;} /DO_NOT_LOG/ { nolog += 1;} END { printf "%d/%d", logme, nolog; }')" = "26/0" ]
test_binary_modules_winrm: INVENTORY = inventory.winrm test_binary_modules_winrm: INVENTORY = inventory.winrm
test_binary_modules_winrm: test_binary_modules test_binary_modules_winrm: test_binary_modules

View file

@ -62,11 +62,6 @@ if [ ! -f /usr/local/bin/sha1sum ]; then
ln -s /usr/local/bin/shasum /usr/local/bin/sha1sum ln -s /usr/local/bin/shasum /usr/local/bin/sha1sum
fi fi
# FIXME: async doesn't work with ansible_python_interpreter, see: https://github.com/ansible/ansible/issues/14101
if [ ! -f /usr/bin/python ]; then
ln -s /usr/local/bin/python /usr/bin/python
fi
# Tests assume loopback addresses other than 127.0.0.1 will work. # Tests assume loopback addresses other than 127.0.0.1 will work.
# Add aliases for loopback addresses used by tests. # Add aliases for loopback addresses used by tests.