diff --git a/test/integration/targets/throttle/test_throttle.yml b/test/integration/targets/throttle/test_throttle.yml index 260ebcdc03f..a2993ddc6cf 100644 --- a/test/integration/targets/throttle/test_throttle.yml +++ b/test/integration/targets/throttle/test_throttle.yml @@ -2,7 +2,7 @@ - hosts: localhosts gather_facts: false vars: - throttledir: ~/ansible_testing/throttle.dir/ + throttledir: "{{ lookup('env', 'OUTPUT_DIR') }}/throttle.dir/" tasks: - name: Clean throttledir '{{ throttledir }}' file: diff --git a/test/lib/ansible_test/_internal/executor.py b/test/lib/ansible_test/_internal/executor.py index d02b30f92c1..3de843d6123 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