diff options
author | Matt Clay <matt@mystile.com> | 2019-08-29 10:21:38 +0200 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2019-08-29 11:32:31 +0200 |
commit | 032bd3a030c5f0c08dc52f5467d52dce97ee1933 (patch) | |
tree | 692551d07618652ddf2e8bbe2850987bf4adc23e /test/lib/ansible_test/_internal/executor.py | |
parent | Collection role relative deps (#61517) (diff) | |
download | ansible-032bd3a030c5f0c08dc52f5467d52dce97ee1933.tar.xz ansible-032bd3a030c5f0c08dc52f5467d52dce97ee1933.zip |
Move the ansible-test output_dir.
This directory is currently a fixed location to make troubleshooting easier.
It is cleared before each test target runs, but is preserved when a test target finishes.
This allows the contents to be inspected when a test fails.
The previous location was `~/ansible_testing/`.
The new location is within the content root:
- `test/results/.tmp/output_dir` for Ansible
- `tests/output/.tmp/output_dir` for Ansible Collections
Moving the directory reduces the number of places on the filesystem where tests create output.
It also enables the results to be returned from delegated systems.
Diffstat (limited to 'test/lib/ansible_test/_internal/executor.py')
-rw-r--r-- | test/lib/ansible_test/_internal/executor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/ansible_test/_internal/executor.py b/test/lib/ansible_test/_internal/executor.py index d02b30f92c..3de843d612 100644 --- a/test/lib/ansible_test/_internal/executor.py +++ b/test/lib/ansible_test/_internal/executor.py @@ -921,7 +921,7 @@ def command_integration_filtered(args, targets, all_targets, inventory_path, pre check_pyyaml(args, args.python_version) - test_dir = os.path.expanduser('~/ansible_testing') + test_dir = os.path.join(ResultType.TMP.path, 'output_dir') if not args.explain and any('needs/ssh/' in target.aliases for target in targets): max_tries = 20 |