diff options
author | Jürg Billeter <j@bitron.ch> | 2019-08-29 19:41:27 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-08-30 07:30:10 +0200 |
commit | d7db365912a2c34118b6e6b8c638d52666f8ecb5 (patch) | |
tree | 5b82381417570972d7c10b8e18d7ab240c1d3070 | |
parent | e9978cdd675f1fcf3d0de49bb38908fd25194c8a (diff) | |
download | buildstream-d7db365912a2c34118b6e6b8c638d52666f8ecb5.tar.gz |
Set HOME environment variable for tests
This fixes host contamination for tools that use HOME, e.g., bzr.
-rw-r--r-- | setup.cfg | 1 | ||||
-rw-r--r-- | tox.ini | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -16,6 +16,7 @@ norecursedirs = tests/integration/project integration-cache tmp __pycache__ .egg python_files = tests/*/*.py env = D:BST_TEST_SUITE=True + D:HOME=./tmp D:XDG_CACHE_HOME=./tmp/cache D:XDG_CONFIG_HOME=./tmp/config D:XDG_DATA_HOME=./tmp/share @@ -55,6 +55,7 @@ passenv = # setenv = py{35,36,37}: COVERAGE_FILE = {envtmpdir}/.coverage + py{35,36,37}: HOME = {envtmpdir} 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 |