Commit Graph

14 Commits

Author SHA1 Message Date
Clark Boylan 17e2df31b2 Set tox basepython to python2
bashate isn't working under python3 so we pin to python2.

Change-Id: Idbff334bec75bdbb7f7e46a164d8904768ef5881
2019-12-18 08:45:07 -08:00
Ian Wienand 0f3e44d726 Fix bashate "local hides exit status" warnings
Promote "local hides exit status" (E042) to error and fix issues found
(this is inline with what we do in devstack).

Change-Id: Idd784af066db80bb67792da3dd0aa0ae4c8475db
2018-03-26 09:46:56 +02:00
Monty Taylor 520cd8be8c Remove run-tests and py3-run-tests
We have standard jobs for doing unittests under python2 and python3 -
namely, the builtin tox environments py27 and py35. Just use those and
remove the locally defined jobs.

Depends-On: I6d7a96adf5cfb075f5a2ffbd089ccbb883a1c1b4
Change-Id: I0cc0c07daafba331a64861c134029e443ba2aa8d
2017-12-19 07:29:54 +01:00
Monty Taylor 778884e5b7 Move commands to the base testenv
This should allow py27 and py35 to both work in parallel while we remove
the run-tests versions.

Add the new jobs here, even though the next patch will remove them,
since we can't verify the new jobs work with depends-on to
project-config.

Change-Id: I78cfadf5a3b9822ce32f5a1d9b76321d573618ab
2017-12-19 07:29:26 +01:00
Clark Boylan 20d9f85025 Add tox target for python3 test env
As devstack moves towards testing with python3 it would be potentially
useful to run devstack-gate without depending on python2. There are
likely other items that need porting/testing, but this is a start in
that process and makes sure we can test the test-matrix.py script with
python2 and 3.

Change-Id: Ida4906bfebc839bb7a0df11f53966a6b8c45689f
2017-01-06 16:20:13 -08:00
Ian Wienand 7ee1b835e3 Update to bashate 0.5.0
Update to bashate 0.5.0.  Document options.  Fix one simple error
about (( )) return code.  This introduces warnings about "local"
hiding return values; fix in a follow-on.

Change-Id: Id907a566e046ed65f7e02776f2be4382829afe8e
2016-09-05 11:45:11 +10:00
Davanum Srinivas ceb9cd120b Run tests in venv
Previously we had wrongly assumed that python yaml package
will be available in the images and the run-tests.sh script
ran a set of things which included a script that used
the pyyaml package. With the recent bindep changes, this
assumption broke and the gate-devstack-gate-unittests
failed. So we need to install the pyyaml package and then run
the tests in this venv for run-tests.sh to work.

Change-Id: I541c8add8041348a259b3b789d24cf24ba122ce0
2016-03-08 10:25:17 -05:00
Ian Wienand 84ad7769da Pin bashate to 0.3.1
Pin bashate to 0.3.1, and fix up some minor indenting issues

Note we use the same environment override value as in devstack
(I165c4d66db8b7bdcff235ef7d8c99029637bb76a) to allow bashate CI to run
on this.

Change-Id: I0769b1f394643abd0a0b42d571bbb36b8b9c402d
2015-10-28 10:12:45 +11:00
Sean Dague 5ca0a8700b add tox to the tree for doing bashate checking
this enables a bashate rule for doing style checking. Fixes for
issues found will come in a second patch so any rules that people
want ignored could be debated there.

Change-Id: I7dffa587784297ec65596a36c0600473cfa591c6
2014-07-24 07:01:51 -04:00
James E. Blair ae2c5d263d Remove node management from devstack-gate
It's in nodepool now.

Change-Id: If1f8651c437bd9a332e7392a59f155c8b3ca3d6c
2013-08-30 10:47:04 -07:00
Monty Taylor 20dbec1ff9 Fixed pyflakes issues.
Change-Id: Ifa63142b5587846e6c61c9337a9b85489e0f8b87
2013-07-22 15:01:51 -07:00
Monty Taylor 948c1786d6 Fixed some line-length and whitespace warnings.
Change-Id: I43e4597eccc7a400bad6674ec803028a53e409ad
2013-07-22 15:01:51 -07:00
Monty Taylor f5aaf25aa4 Use testr and flake8.
Change-Id: I748a0f54416ca540153ed5a9e7edfff739acaaea
2013-07-22 15:01:50 -07:00
Bhuvan Arumugam 33fbc416ba Add tox tests/pep8 for devstack-gate scripts.
Bug: 1010610

With this commit, we could run py26, py27 and pep8 tests
against these scripts, using tox.

* .gitignore
  Ignore build files.

* MANIFEST.in
  List of files to include in sdist package.

* setup.cfg
  Setup configuration.

* setup.py
  Script to generate sdist package.

* tools/pip-requires
  Pip dependency list.

* tools/test-requires
  Extensive list of dependencies to execute tests.

* tox.ini
  Tox targets.

Change-Id: I3f14af096b3078214d0747c2ab99b0a42b5190e9
2012-06-15 23:13:29 -07:00