tox-dev / tox

Command line driven CI frontend and development task automation tool.
https://tox.wiki
MIT License
3.69k stars 523 forks source link

Tests trying to write into '/.cache' and failed #255

Closed pytoxbot closed 7 years ago

pytoxbot commented 8 years ago

I am getting test failures when building in a chroot, full logs: https://paste.xinu.at/GrF/

I did not get it at the time when tox 2.0.1 was released, but as you can see in the logs, 2.0.1 fails now. I'm still trying to figure out what changed during the time (maybe due to a pip upgrade or something?).

I have also tried to specify HOME but that didn't help.

pytoxbot commented 8 years ago

Original comment by @felixonmars

Pip's docs says it respects $XDG_CACHE_HOME, but it seems that variable failed to make it into the virtualenv (as it was not shown in the env: part of the logs). Any hints on how to pass the environment variable into the test virtualenv?

pytoxbot commented 8 years ago

Original comment by @hpk42

I guess it's a problem with pip -- maybe you can set an environment variable for what pip uses as cache?

obestwalter commented 7 years ago

Closing this as not actually being a bug in tox (please reopen if I was wrong).

@felixonmars you can ask tox to pass env vars into the testenv by e.g. setting passenv=XDG_CACHE_HOME.