Cap stestr at 2.6.0 for python27

The last stestr version to support Python 2.7 is 2.6.0. This has not
caused problems until recently, when we started seeing the py27 job
fail with the following error:

run.py discover: error: no such option: --list

This patch caps stestr to 2.6.0 when running with Python 2.7. It also
adds test-requirements.txt to the devstack job's irrelevant-files to
avoid wasting gate resources.

Change-Id: Ic05622530acdeb87d40e183e3e988042468c11d9
This commit is contained in:
Artom Lifshitz 2020-03-27 22:29:48 -04:00
parent 1e124bd995
commit 6a9c3bab8f
2 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,8 @@
required-projects:
x/whitebox-tempest-plugin
pre-run: playbooks/whitebox.yaml
irrelevant-files:
- ^test-requirements.txt$
vars:
tox_envlist: all
tempest_concurrency: 1

View File

@ -3,3 +3,4 @@
# process, which may cause wedges in the gate later.
hacking>=1.1.0,<1.2.0 # Apache-2.0
oslotest
stestr<=2.6.0;python_version=='2.7' # MIT