charmed-kubernetes / pytest-operator

Apache License 2.0
6 stars 13 forks source link

break requirement on `TOX_ENV_DIR` to create temporary directories #100

Closed addyess closed 1 year ago

addyess commented 1 year ago

Addressing https://github.com/charmed-kubernetes/pytest-operator/issues/92 and providing a way to not necessarily use the TOX_ENV_DIR to host temporary files.

There are circumstances when the juju snap needs to write files, but cannot use the TOX_ENV_DIR path because it's not under the user's $HOME directory.

This change will honor TMPDIR first before TOX_ENV_DIR