openstack-charmers / zaza-openstack-tests

OpenStack Charms Functional Test Library for Zaza
Apache License 2.0
7 stars 77 forks source link

Set tempdir to a directory under ~/ #1185

Closed freyes closed 6 months ago

freyes commented 6 months ago

When juju 3.x is used (installed from a snap in strict confinement) the temporary directory of the system (e.g. /tmp) can't be read by 'juju', this is used by zaza-openstack-tests to write testing policy files among other transitory files that are passed to juju's CLI.

This change moves Python's default temporary file to ~/tmp unless overriden by the environment variable TEST_TMPDIR.

freyes commented 6 months ago

Testing this change at the gate with this gerrit change - https://review.opendev.org/c/openstack/charm-keystone/+/908183

freyes commented 6 months ago

Keeping this as draft until the Keystone patch passes the CI