### Summary

When I run sanity/unit/integration tests I get: 

```
 File "/root/ansible/bin/ansible-test", line 45, in <module>
    main()
  File "/root/ansible/bin/ansible-test", line 36, in main
    cli_main(args)
  File "/root/ansible/test/lib/ansible_test/_internal/__init__.py", line 64, in main
    args = parse_args(cli_args)
           ^^^^^^^^^^^^^^^^^^^^
  File "/root/ansible/test/lib/ansible_test/_internal/cli/__init__.py", line 58, in parse_args
    args.host_settings = HostSettings.deserialize(os.path.join(args.host_path, 'settings.dat'))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/ansible/test/lib/ansible_test/_internal/host_configs.py", line 533, in deserialize
    with open_binary_file(path) as settings_file:
         ^^^^^^^^^^^^^^^^^^^^^^
  File "/root/ansible/test/lib/ansible_test/_internal/io.py", line 79, in open_binary_file
    return io.open(to_bytes(path), mode)  # pylint: disable=consider-using-with
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: b'test/results/.tmp/host-92moe40p/settings.dat'
```

### Issue Type

Bug Report

### Component Name

ansible-test sanity/unit/integration

### Ansible Version

```console
$ ansible --version

[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly
changing source of code and can become unstable at any point.
ansible [core 2.16.0.dev0]
  config file = None
  configured module search path = ['/home/bbarbach/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.9/site-packages/ansible
  ansible collection location = /home/bbarbach/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.9.6 (default, Aug 11 2021, 06:39:25) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] (/usr/bin/python3.9)
  jinja version = 3.1.1
  libyaml = True
```


### Configuration

```console
# if using a version older than ansible-core 2.12 you should omit the '-t all'
$ ansible-config dump --only-changed -t all

CONFIG_FILE() = None
```


### OS / Environment

RHEL 8

### Steps to Reproduce

<!--- Paste example playbooks or commands between quotes below -->
```yaml (paste below)
ansible-test units --docker -v yum
```


### Expected Results

I expected the unit tests for the yum module to be run

### Actual Results

```console
Traceback (most recent call last):
  File "/root/ansible/bin/ansible-test", line 45, in <module>
    main()
  File "/root/ansible/bin/ansible-test", line 36, in main
    cli_main(args)
  File "/root/ansible/test/lib/ansible_test/_internal/__init__.py", line 64, in main
    args = parse_args(cli_args)
           ^^^^^^^^^^^^^^^^^^^^
  File "/root/ansible/test/lib/ansible_test/_internal/cli/__init__.py", line 58, in parse_args
    args.host_settings = HostSettings.deserialize(os.path.join(args.host_path, 'settings.dat'))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/ansible/test/lib/ansible_test/_internal/host_configs.py", line 533, in deserialize
    with open_binary_file(path) as settings_file:
         ^^^^^^^^^^^^^^^^^^^^^^
  File "/root/ansible/test/lib/ansible_test/_internal/io.py", line 79, in open_binary_file
    return io.open(to_bytes(path), mode)  # pylint: disable=consider-using-with
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: b'test/results/.tmp/host-jnbe6ait/settings.dat'
FATAL: Command "docker exec ansible-test-controller-8LbyW7uq /usr/bin/env ANSIBLE_TEST_CONTENT_ROOT=/root/ansible LC_ALL=en_US.UTF-8 /usr/bin/python3.11 /root/ansible/bin/ansible-test units -v yum --containers '{}' --requirements-mode only --truncate 211 --color yes --host-path test/results/.tmp/host-jnbe6ait --metadata test/results/.tmp/metadata-e6w9ymfb.json" returned exit status 1.
```
```


### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct
"""Code for finding content."""
from __future__ import annotations
import abc
import collections
import os
import typing as t
from ...util import (
    ANSIBLE_SOURCE_ROOT,
)
from .. import (
    PathProvider,
)
class Layout:
    """Description of content locations and helper methods to access content."""
    def __init__(
        self,
        root: str,
        paths: list[str],
    ) -> None:
        self.root = root
        self.__paths = paths  
        self.__files = [path for path in paths if not path.endswith(os.path.sep)]  
        self.__paths_tree = paths_to_tree(self.__paths)
        self.__files_tree = paths_to_tree(self.__files)
    def all_files(self, include_symlinked_directories: bool = False) -> list[str]:
        """Return a list of all file paths."""
        if include_symlinked_directories:
            return self.__paths
        return self.__files
    def walk_files(self, directory: str, include_symlinked_directories: bool = False) -> list[str]: