commit d5bd526f11e69059f1f3cdc3898c9251b04b65b8
Author: Tom Barron <email address hidden>
Date: Thu Mar 28 14:46:06 2019 -0400
[tests] Fix PYTHON3_VERSION
The pre test hook for gate tests has a faulty test
for whether the PYTHON3_VERSION variable is set and
as a result puts a blank value for this variable in
local.conf when it is not set instead of leaving it
out of local.conf altogether. This causes jobs
running with USE_PYTHON3=True and no explict version
setting to actually run manila under python 2.7 because
that is what devstack itself defaults for pip installs
if the version is not set (or auto-detected in devstack
when local.conf does not contain the PYTHON3_VERSION
variable at all).
So correct the condition in our pre-test hook so that
it only inserts a PYTHON3_VERSION in local.conf if
that version has been supplied.
Reviewed: https:/ /review. openstack. org/648505 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=d5bd526f11e 69059f1f3cdc389 8c9251b04b65b8
Committed: https:/
Submitter: Zuul
Branch: master
commit d5bd526f11e6905 9f1f3cdc3898c92 51b04b65b8
Author: Tom Barron <email address hidden>
Date: Thu Mar 28 14:46:06 2019 -0400
[tests] Fix PYTHON3_VERSION
The pre test hook for gate tests has a faulty test
for whether the PYTHON3_VERSION variable is set and
as a result puts a blank value for this variable in
local.conf when it is not set instead of leaving it
out of local.conf altogether. This causes jobs
running with USE_PYTHON3=True and no explict version
setting to actually run manila under python 2.7 because
that is what devstack itself defaults for pip installs
if the version is not set (or auto-detected in devstack
when local.conf does not contain the PYTHON3_VERSION
variable at all).
So correct the condition in our pre-test hook so that
it only inserts a PYTHON3_VERSION in local.conf if
that version has been supplied.
Closes-bug: #1822178 770d82fb7fd6475 dcfab74a543
Change-Id: Ie37595bde17d18