##### SUMMARY

Support collection roles as integration test targets.

Now that https://github.com/ansible/ansible/issues/59462 has been merged, ansible-test can be updated to support running integration test targets that are collection roles.

The planned convention is to look for targets under `roles/test/` and allow use of target-specific plugins from `plugins/{plugin_type}/test/{target_name}/`.

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

ansible-test

##### ADDITIONAL INFORMATION

This will allow integration test targets to be written using collections instead of pre-collection roles.
suffix = '-ansible'
    root_temp_dir = '/tmp'
    if args.explain:
        return os.path.join(root_temp_dir, ''.join((prefix, 'temp', suffix)))
    python_path = tempfile.mkdtemp(prefix=prefix, suffix=suffix, dir=root_temp_dir)
    injected_interpreter = os.path.join(python_path, 'python')
    
    
    use_symlink = os.path.dirname(os.path.realpath(interpreter)) == os.path.dirname(interpreter)
    if use_symlink:
        display.info('Injecting "%s" as a symlink to the "%s" interpreter.' % (injected_interpreter, interpreter), verbosity=1)
        os.symlink(interpreter, injected_interpreter)
    else:
        display.info('Injecting "%s" as a execv wrapper for the "%s" interpreter.' % (injected_interpreter, interpreter), verbosity=1)
        code = textwrap.dedent('''
        #!%s
        from __future__ import absolute_import
        from os import execv
        from sys import argv
        python = '%s'
        execv(python, [python] + argv[1:])
        ''' % (interpreter, interpreter)).lstrip()
        write_text_file(injected_interpreter, code)
        os.chmod(injected_interpreter, MODE_FILE_EXECUTE)
    os.chmod(python_path, MODE_DIRECTORY)
    if not PYTHON_PATHS:
        atexit.register(cleanup_python_paths)
    PYTHON_PATHS[interpreter] = python_path
    return python_path
def cleanup_python_paths():