From 32178bb793daacbf4ad050f56815b5473c545c9b Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Wed, 13 May 2015 11:07:55 -0600 Subject: [PATCH] tests: set HOME env var Travis CI's docs say that HOME is supposed to be set to /home/travis by default, however, it also says "do not depend on this value": http://docs.travis-ci.com/user/ci-environment/ Teuthology depends on the $HOME environment variable being set, and the test suites that depended on this recently failed to build in Travis CI. Set the var explicitly so it's always available for the tests. --- .travis.yml | 2 ++ tox.ini | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index a95d9e8d4..1f7c73c4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ +env: HOME=/home/travis + language: python python: - 2.7 diff --git a/tox.ini b/tox.ini index 3eac51610..dabc47563 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,7 @@ envlist = docs, py27, py27-integration, flake8 [testenv:py27] +passenv = HOME sitepackages=True deps= -r{toxinidir}/requirements.txt @@ -14,6 +15,7 @@ deps= commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts} [testenv:py27-integration] +passenv = HOME sitepackages=True deps= -r{toxinidir}/requirements.txt -- 2.47.3