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
Sam Doran e8d4b62b41
Fix YAML error message when error is at the end of the file (#73241)
* Fix YAML error message when error is at the end of the file

If a YAML file fails to load due to a syntax error in a file, or there is an error in the last line of a
file, PyYAML reports the last line number of the file as the index where the error occurred.

When reading the file lines, we use that index to the get the relevant line.  If the index value is out
of range, the relevant line is lost for error reporting.

Subtract one from the index value to avoid the IndexError in this specific scenario. It is possible
to still get an IndexError, which will be handled as it is currently.

* Update existing tests and add new tests
5 years ago
..
ansible_test Relocate ansible-test self tests outside package. (#61255) 6 years ago
integration Use a pty for local connections (#73023) 5 years ago
lib/ansible_test update rstcheck and sphinx versions in contraints (#73176) 5 years ago
sanity Document install_python_apt option of apt_repository (#72959) 5 years ago
support Various intentional tests (#72485) 5 years ago
units Fix YAML error message when error is at the end of the file (#73241) 5 years ago
utils/shippable [devel] Azure Pipelines configuration. 5 years ago