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:58 -0800 |
commit | 98c41fd739173887df10867ca4b3fdadfcb1a0b3 (patch) | |
tree | e199a68d805a134a4e7c80f2321e429ec2461faf | |
parent | 24c6227122787cc0e846ef863c8305112da5cea1 (diff) | |
download | ansible-98c41fd739173887df10867ca4b3fdadfcb1a0b3.tar.gz |
[stable-2.10] 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 307d7c353f..5b4117a06c 100644 --- a/test/lib/ansible_test/_data/requirements/units.txt +++ b/test/lib/ansible_test/_data/requirements/units.txt @@ -4,4 +4,5 @@ mock pytest pytest-mock pytest-xdist +pytest-forked pyyaml 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', |