From 824492f0d7088d6779ffce238a1dca1dbd939ace Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Jan 21 2019 13:55:20 +0000 Subject: Add the HOME environment variable when running tox tests. This is needed in tox.ini when running tests in CentOS CI. Signed-off-by: Randy Barlow --- diff --git a/docs/dev-guide/writing-tests.rst b/docs/dev-guide/writing-tests.rst index 195ee4e..b632eb1 100644 --- a/docs/dev-guide/writing-tests.rst +++ b/docs/dev-guide/writing-tests.rst @@ -94,6 +94,11 @@ errors" Sphinx flag enabled:: # Substitute your test runner of choice commands = py.test + # When running in OpenShift you don't have a username, so expanduser + # won't work. If you are running your tests in CentOS CI, this line is + # important so the tests can pass there, otherwise tox will fail to find + # a home directory when looking for configuration files. + passenv = HOME [testenv:docs] changedir = docs