summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2019-03-20 16:06:13 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2019-03-20 07:13:39 +0000
commite8d4e2de83b4f2b9a289dbf8ae419c62afa7a021 (patch)
tree225dfea6bff3808c1edf395ea28b5e64b2fbf58b /tox.ini
parentecce1bff5d69e34ec2da95e836d60fcbc4b458bc (diff)
downloadbuildstream-e8d4e2de83b4f2b9a289dbf8ae419c62afa7a021.tar.gz
tox.ini: Override/relocate XDG_ environment variables when running tests
This is not necessary to fix #966 as it is already done in the setup.cfg, however this just provides a consistent environment in case we do run tests which use configurations in the default `XDG_` driven locations.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 4f61cccf7..7fc1e85cf 100644
--- a/tox.ini
+++ b/tox.ini
@@ -44,6 +44,10 @@ passenv =
#
setenv =
py{35,36,37}: COVERAGE_FILE = {envtmpdir}/.coverage
+ py{35,36,37}: XDG_CACHE_HOME = {envtmpdir}/cache
+ py{35,36,37}: XDG_CONFIG_HOME = {envtmpdir}/config
+ py{35,36,37}: XDG_DATA_HOME = {envtmpdir}/share
+
whitelist_externals =
py{35,36,37}:
mv