You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run tox-current-env tests with --current-env then I see many tests to fail:
=========================== short test summary info ============================
FAILED tests/test_integration_tox4.py::test_recreate_environment[--print-deps-to=-] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_self_is_not_installed[True---print-extras-to=-] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_self_is_not_installed[True---current-env] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_self_is_not_installed[False---print-deps-to=-] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_recreate_environment[--current-env] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_self_is_not_installed[False---current-env] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_self_is_not_installed[False---print-extras-to=-] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_self_is_installed_with_regular_tox[False] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_self_is_installed_with_regular_tox[True] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_passenv[None] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_passenv[different list] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_passenv[__var] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_passenv[*] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_self_is_not_installed[True---print-deps-to=-] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_pass_env[None] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_pass_env[*] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_pass_env[different\nlist] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_pass_env[__var] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_report_installed - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
FAILED tests/test_integration_tox4.py::test_regular_run_native_toxenv - subprocess.CalledProcessError: Command '('/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python', '-m', 'tox', '-q', '-e', 'py39')' returned non-zero exit status 255.
FAILED tests/test_integration_tox4.py::test_print_deps_without_python_command[--print-deps-to-file=-] - FileNotFoundError: [Errno 2] No such file or directory: '/data/builds/oi-userland/components/python/tox-current-env/build/amd64-3.9/.tox/py39/bin/python'
======= 21 failed, 164 passed, 2 skipped, 1 xfailed in 84.83s (0:01:24) ========
It looks like the tox("-e", NATIVE_TOXENV, print_deps_stdout_arg, env=env) call removes .tox/py39/bin in the TOX_WORK_DIR and so all tests executed after this call simply fail. I've no idea why this particular tox() call removes the bin dir while all other tox() calls executed in tox-current-env test suite are okay. Maybe in all other tox() calls there is no TOX_WORK_DIR set?
I know that running tox-current-env tests with --current-env is discouraged, but since it mostly pass I think it is worth trying to make it fully working.
When I run
tox-current-env
tests with--current-env
then I see many tests to fail:I found that when I do this:
then all tests pass:
The text was updated successfully, but these errors were encountered: