Fix tox certificate issues in python2
Python2 tox jobs may fail due to expired CA certificates. The workaround is to explicitly set an environment variable. This env variable is only passed to python2.7 targets. If a developer is not currently blocked by certificate failures then they do not need to set anything. Ex: CURL_CA_BUNDLE=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem The py files are only updated to trigger the appropriate zuul tox jobs. Story: 2008943 Task: 44007 Signed-off-by: albailey <Al.Bailey@windriver.com> Change-Id: Iba6c251368e41cd6a34dd4be4138f5eb4ad3804c
This commit is contained in:
parent
5c973fda71
commit
ddeed8d916
@ -1,5 +1,5 @@
|
||||
"""
|
||||
Copyright (c) 2017-2019 Wind River Systems, Inc.
|
||||
Copyright (c) 2017-2021 Wind River Systems, Inc.
|
||||
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
|
@ -31,6 +31,7 @@ commands = {posargs}
|
||||
[testenv:py27]
|
||||
basepython = python2.7
|
||||
deps = {[testenv]deps}
|
||||
passenv = CURL_CA_BUNDLE
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
stestr run {posargs}
|
||||
|
@ -1,6 +1,4 @@
|
||||
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
||||
|
||||
# Copyright 2013 Hewlett-Packard Development Company, L.P.
|
||||
# Copyright 2013-2021 Hewlett-Packard Development Company, L.P.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
|
@ -104,6 +104,7 @@ commands =
|
||||
|
||||
[testenv:py27]
|
||||
basepython = python2.7
|
||||
passenv = CURL_CA_BUNDLE
|
||||
commands =
|
||||
{[testenv]commands}
|
||||
stestr run {posargs}
|
||||
@ -179,6 +180,7 @@ commands =
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python2.7
|
||||
passenv = CURL_CA_BUNDLE
|
||||
deps = {[testenv]deps}
|
||||
setenv = {[testenv]setenv}
|
||||
PYTHON=coverage run --parallel-mode
|
||||
|
@ -33,6 +33,7 @@ commands =
|
||||
|
||||
[testenv:py27]
|
||||
basepython = python2.7
|
||||
passenv = CURL_CA_BUNDLE
|
||||
commands = {[testenv:stestr]commands}
|
||||
|
||||
[testenv:py36]
|
||||
@ -65,6 +66,7 @@ max-line-length = 120
|
||||
|
||||
[testenv:flake8]
|
||||
basepython = python2.7
|
||||
passenv = CURL_CA_BUNDLE
|
||||
usedevelop = False
|
||||
skip_install = True
|
||||
commands =
|
||||
|
@ -1,5 +1,5 @@
|
||||
"""
|
||||
Copyright (c) 2014 Wind River Systems, Inc.
|
||||
Copyright (c) 2014-2021 Wind River Systems, Inc.
|
||||
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user