]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
tests: set HOME env var 490/head
authorKen Dreyer <kdreyer@redhat.com>
Wed, 13 May 2015 17:07:55 +0000 (11:07 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Wed, 13 May 2015 18:03:04 +0000 (12:03 -0600)
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
tox.ini

index a95d9e8d442372a30437ba115e21c82528c26b5a..1f7c73c4d88b90d0094a1eb97f1b888b9b0bf417 100644 (file)
@@ -1,3 +1,5 @@
+env: HOME=/home/travis
+
 language: python
 python:
     - 2.7
diff --git a/tox.ini b/tox.ini
index 3eac516106af890e2cde2520dbee943ebbc1bc35..dabc47563aaa6d3d2413dd611db3414829c8918c 100644 (file)
--- 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