ansible/test
Adrian Likins 2149d1092b Fix 'distribution' fact for ArchLinux (#30723)
Allow empty wasn't breaking out of the process_dist_files
loop, so a empty /etc/arch-release would continue searching
and eventually try /etc/os-release. The os-release parsing
works, but the distro name there is 'Arch Linux' which does
not match the 2.3 behavior of 'Archlinux'

Add a OS_RELEASE_ALIAS map for the cases where we need to get
the distro name from os-release but use an alias.

We can't include 'Archlinux' in SEARCH_STRING because a name match on its keys
but without a match on the content causes a fallback to using the first
whitespace seperated item from the file content as the name.
For os-release, that is in form 'NAME=Arch Linux'

With os-release returning the right name, this also supports the
case where there is no /etc/arch-release, but there is a /etc/os-release

Fixes #30600

* pep8 and comment cleanup

(cherry picked from commit 3eab636b3f)
2017-09-25 15:06:05 -04:00
..
compile Docs how to test (2nd) (#24094) 2017-04-28 09:08:26 +01:00
integration Increase pause time in junos integration test (#30740) (#30799) 2017-09-23 18:42:00 +05:30
results Collect data from integration test runs. (#28650) 2017-08-25 18:14:47 -04:00
runner Improve ansible-test HttpClient error handling. (#30301) 2017-09-13 13:09:42 -07:00
sanity [fix] no-unicode-literals sanity error on ansible.egg-info (#30446) 2017-09-21 12:48:03 -07:00
units Fix 'distribution' fact for ArchLinux (#30723) 2017-09-25 15:06:05 -04:00
utils Divide Windows integration tests into 2 groups. (#29029) 2017-09-05 15:32:26 -07:00