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:51:06 -0800 |
commit | 5c2df6ebf96ba4a6fa02e18b4d9b1f8b0da32cb4 (patch) | |
tree | a466dc9bd8a964739d048eb24be87b0e785d9af2 | |
parent | aafa65999c1b0bc519e3aa656361630d8d04579f (diff) | |
download | ansible-5c2df6ebf96ba4a6fa02e18b4d9b1f8b0da32cb4.tar.gz |
[stable-2.9] 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', |