diff options
author | Matt Clay <matt@mystile.com> | 2022-01-07 11:42:49 -0800 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2022-02-22 11:50:49 -0800 |
commit | 1b57ccb7a9bf2d00e400f8537445ff4a0be456a7 (patch) | |
tree | effd4c76e170a75613ef557abeb1effe50789475 | |
parent | d6b6c95498ab7c1e20477d102ffec2e315bb4a82 (diff) | |
download | ansible-1b57ccb7a9bf2d00e400f8537445ff4a0be456a7.tar.gz |
[stable-2.11] ansible-test - Use `--forked` instead of `--boxed`
The `--boxed` option is deprecated..
(cherry picked from commit eaeec8a65c4bf9066c5a2c180ec11872f84e6b67)
Co-authored-by: Matt Clay <matt@mystile.com>
-rw-r--r-- | changelogs/fragments/ansible-test-pytest-forked.yml | 2 | ||||
-rw-r--r-- | test/lib/ansible_test/_data/requirements/units.txt | 1 | ||||
-rw-r--r-- | test/lib/ansible_test/_internal/units/__init__.py | 2 |
3 files changed, 4 insertions, 1 deletions
diff --git a/changelogs/fragments/ansible-test-pytest-forked.yml b/changelogs/fragments/ansible-test-pytest-forked.yml new file mode 100644 index 0000000000..a8a58ce0a1 --- /dev/null +++ b/changelogs/fragments/ansible-test-pytest-forked.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-test - Update unit tests to use the ``--forked`` option instead of the deprecated ``--boxed`` option. diff --git a/test/lib/ansible_test/_data/requirements/units.txt b/test/lib/ansible_test/_data/requirements/units.txt index b237a5c38c..d2bdf189cb 100644 --- a/test/lib/ansible_test/_data/requirements/units.txt +++ b/test/lib/ansible_test/_data/requirements/units.txt @@ -4,5 +4,6 @@ mock pytest pytest-mock pytest-xdist +pytest-forked pyyaml resolvelib diff --git a/test/lib/ansible_test/_internal/units/__init__.py b/test/lib/ansible_test/_internal/units/__init__.py index 2214543111..d3f4638230 100644 --- a/test/lib/ansible_test/_internal/units/__init__.py +++ b/test/lib/ansible_test/_internal/units/__init__.py @@ -95,7 +95,7 @@ def command_units(args): cmd = [ 'pytest', - '--boxed', + '--forked', '-r', 'a', '-n', str(args.num_workers) if args.num_workers else 'auto', '--color', |