Allow Chrome to start when tox is running npm

Chrome in *nix environments requires the HOME and DISPLAY variables
to be set for Chrome to start properlyi when running the 'npm' rule.
The HOME variable is needed so Chrome can load up the user's
preferences.  The DISPLAY variable is needed so it know what display
to launch Chrome into.

Change-Id: I84f4d1d47f065158e8f5bf5691c241061cc16aab
Closes-Bug: #1684321
This commit is contained in:
Jack Choy 2017-04-20 16:37:49 -07:00
parent 612c2e5e95
commit 989e10e7a5
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ basepython = python2.7
commands = nosetests openstack_dashboard.test.integration_tests {posargs}
[testenv:npm]
passenv =
HOME
DISPLAY
commands =
nodeenv -p
npm install