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/sanity
Pilou 016cd0691c alternatives: handle absent link, add integration tests (#27967)
* alternatives: add integration tests

* alternatives: handle absent link (fix AttributeError)

Error occurred at least on Debian Stretch and OpenSuse 42.2:
Traceback (most recent call last):
  File "/tmp/ansible_RY6X41/ansible_module_alternatives.py", line 161, in <module>
    main()
  File "/tmp/ansible_RY6X41/ansible_module_alternatives.py", line 113, in main
    current_path = current_path_regex.search(display_output).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

update-alternatives stdout sample:
dummy - manual mode
  link best version is /usr/bin/dummy1
  link currently absent
  link dummy is /usr/bin/dummy

* alternatives: PEP 8 fixes

* alternatives: fix copyright in integration tests

* alternatives: nested loops handle more than 2 items

Thanks to Michael Scherer (@mscherer) for pointing that.

* alternatives: enable integration tests
7 years ago
..
ansible-doc Remove remnants of obsolete fireball mode. 8 years ago
code-smell Fix wildcard imports, remove get_exception, add boilerplate 7 years ago
import circonus_annotation: fix broken import, update requirements 7 years ago
pep8 alternatives: handle absent link, add integration tests (#27967) 7 years ago
pylint Add some features to the pylint sanity check 7 years ago
rstcheck Add rstcheck to ansible-test and correct issues. (#23550) 8 years ago
shellcheck Disable newer shellcheck tests which don't pass. 8 years ago
validate-modules metadata 1.1 7 years ago