summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/git.py
Commit message (Collapse)AuthorAgeFilesLines
* ansible-test - Improve code formatting (#79983)Matt Clay2023-02-131-0/+1
| | | | | | | | | | | | | | | | | * ansible-test - Add blank lines after docstrings * ansible-test - Preserve formatting of arg pairs * ansible-test - Remove unused string * ansible-test - Remove pointless dict() usage * ansible-test - Clean up initial func arg indenting * ansible-test - Clean up constructor arg indenting * ansible-test - Clean up func arg wrapping * ansible-test - Clean up comma and paren placement
* ansible-test - Avoid use of deprecated type hints. (#78456)Matt Clay2022-08-041-8/+8
| | | | | | | | | * ansible-test - Avoid use of deprecated type hints. PEP 585 deprecated many container types in the `typing` module in favor of the actual types, which support subscripting as of Python 3.9. Conversion of `t.Type` was skipped since PyCharm does not currently recognize it. * ansible-test - Fix `t` and `c` imports/shadowing.
* ansible-test - Use more native type hints. (#78435)Matt Clay2022-08-031-12/+12
| | | | | | | | | | | | | | | | | * ansible-test - Use more native type hints. Simple search and replace to switch from comments to native type hints for return types of functions with no arguments. * ansible-test - Use more native type hints. Conversion of simple single-line function annotation type comments to native type hints. * ansible-test - Use more native type hints. Conversion of single-line function annotation type comments with default values to native type hints. * ansible-test - Use more native type hints. Manual conversion of type annotation comments for functions which have pylint directives.
* ansible-test - More PEP 484 type hints.Matt Clay2021-09-241-53/+20
|
* ansible-test - split controller/target testing (#75605)Matt Clay2021-09-201-4/+2
|
* Fix ansible-test handling of git submodules. (#65027)Matt Clay2019-11-191-8/+12
| | | | | | | | * Revert most of PR #61605 commit e218c9814c3cc8d50a8cab23c2bb69061b3b9be9 This removes the git error handling that converted all git errors into warnings. * Fix ansible-test handling of git submodules.
* ansible-test - Continue if the git command returns an error (#61605)Sam Doran2019-08-301-1/+7
| | | | | | | | | | * ansible-test - Contiune if the git command returns an error * Just return stdout * Use to_text() when displaying exception * Add a message property to SubprocessError
* Use relative submodule status in ansible-test.Matt Clay2019-08-291-1/+1
| | | | | | | | The `git submodule status` command is relative to the current git repository by default. When running from a repository subdirectory paths can be returned above the current directory. Specifying the current directory with `git submodule status` avoids listing submodules above that directory. This will fix issues when testing a collection that is rooted below the repository root when that repository uses submodules.
* Fix ansible-test handling of submodules.Matt Clay2019-08-291-0/+9
| | | | Resolves https://github.com/ansible/ansible/issues/61550
* Relocate ansible-test code. (#60147)Matt Clay2019-08-061-0/+118
* Initial move of `test/runner/` content. `test/runner/lib/` -> `test/lib/ansible_test/_internal/` `test/runner/` -> `test/lib/ansible_test/_internal/data/` * Initial move of `test/sanity/` content. `test/sanity/` -> `test/lib/ansible_test/_internal/data/sanity/` (except `test/sanity/ignore.txt`) * Initial move of `test/units/pytest/` content. `test/units/pytest/` -> `test/lib/ansible_test/_internal/data/pytest/` * Follow-up move of `test/runner/unit/` content. `test/lib/ansible_test/_internal/data/unit/` -> `test/lib/ansible_test/tests/unit/` * Initial move of `ansible.cfg` content. `test/units/ansible.cfg` -> `test/lib/ansible_test/_internal/data/units/ansible.cfg` `test/env/ansible.cfg` -> `test/lib/ansible_test/_internal/data/env/ansible.cfg` * Follow-up move of `data` directory. `test/lib/ansible_test/_internal/data/` -> `test/lib/ansible_test/_data/` * Update import statements. * Add missing __init__.py for unit tests. * Fix path references and miscellaneous issues.