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/units
Alex Willmer 163819efa2
tests: Fix `test_ansible_version()` when run within a git checkout (#78636)
When running the unit tests locally, in a git clone, `ansible --test`
prints additional information about the git revision, e.g.

```
~/src/ansible$ ansible --version
ansible 2.10.8
...
~/src/ansible$ source hacking/env-setup
...

Setting up Ansible to run out of checkout...
...
~/src/ansible$ ansible --version
[WARNING]: You are running the development version of Ansible. You
should only run Ansible from "devel" if you are modifying the Ansible
engine, or trying out features under development. This is a rapidly
changing source of code and can become unstable at any point.
ansible [core 2.14.0.dev0] (test_ansible_version-devel df497ea13b) last
updated 2022/08/25 10:37:07 (GMT +100)
...
```

which causes `test_ansible_version()` to fail.

Also removed an unused argument from previous parameterisation.

Co-authored-by: Alex Willmer <alex.willmer@cgi.com>
2 years ago
..
_vendor
ansible_test
cli tests: Fix `test_ansible_version()` when run within a git checkout (#78636) 2 years ago
compat
config
errors
executor
galaxy Add --offline option to 'ansible-galaxy collection install' (#78678) 2 years ago
inventory Fix pytest collection during test_host partial run 2 years ago
inventory_test_data/group_vars
mock
module_utils Add OSMC to Debian OS_FAMILY_MAP (#78778) 2 years ago
modules
parsing
playbook
plugins add ansible_name/ansible_aliases attrs to plugin objects (#78700) 2 years ago
regex
template
utils Skip test if no there are no problematic chars for wcswidth (#78645) 2 years ago
vars
__init__.py
requirements.txt
test_constants.py
test_context.py
test_no_tty.py