tox: pass TEMPEST_CONFIG_DIR envvar into api target environment
Currently, API job skips all tests because TEMPEST_CONFIG_DIR is not set
properly. The environment variable was hardcoded to
/opt/stack/tempest/etc before, and since that's the location for tempest
configuration files that was used in gate, it worked fine there.
But after we were forced to remove the hardcoded value from the file due
to regression in tox 2.2.0+ (If3742b6eabe295a5aaeb4901c55909a70c451698),
it was neither hardcoded, nor passed from the external gate environment.
Note that since tox 2.0.0, the tool does not pass all envvars into tox
targets, but require explicit specification of the list of variables
that should be allowed into the target environment, using passenv
directive.
So that's what the patch does: it allows TEMPEST_CONFIG_DIR to get into
api tox target, which should be enough to make the API job avoid
skipping all tests.
Users are still required to set TEMPEST_CONFIG_DIR variable locally if
they want to execute the suite locally.
Reviewed: https:/ /review. openstack. org/249234 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=143b3dc2864 bec1f92eeed44a3 51e420ae68fd58
Committed: https:/
Submitter: Jenkins
Branch: master
commit 143b3dc2864bec1 f92eeed44a351e4 20ae68fd58
Author: Ihar Hrachyshka <email address hidden>
Date: Tue Nov 24 15:13:00 2015 +0100
tox: pass TEMPEST_CONFIG_DIR envvar into api target environment
Currently, API job skips all tests because TEMPEST_CONFIG_DIR is not set stack/tempest/ etc before, and since that's the location for tempest
properly. The environment variable was hardcoded to
/opt/
configuration files that was used in gate, it worked fine there.
But after we were forced to remove the hardcoded value from the file due 5a5aaeb4901c559 09a70c451698) ,
to regression in tox 2.2.0+ (If3742b6eabe29
it was neither hardcoded, nor passed from the external gate environment.
Note that since tox 2.0.0, the tool does not pass all envvars into tox
targets, but require explicit specification of the list of variables
that should be allowed into the target environment, using passenv
directive.
So that's what the patch does: it allows TEMPEST_CONFIG_DIR to get into
api tox target, which should be enough to make the API job avoid
skipping all tests.
Users are still required to set TEMPEST_CONFIG_DIR variable locally if
they want to execute the suite locally.
Closes-Bug: #1518632 012c7ba16a14573 aa44f2b6fb5
Change-Id: Ia7dcc6785390a6