Commit Graph

4 Commits

Author SHA1 Message Date
Riccardo Pittau 43398c0c47 Update tox config
Update tox min version to something more contemporary.
Default basepython to python3.
Update dependencies of docs and pdf-docs to include upper-constraints.
Move to stestrs and remote os-test from requirements.

Change-Id: I30313dda1a3f56eff2f54632c46cfbdd03aa3cb7
2021-05-12 17:31:27 +02:00
Riccardo Pittau 56096250d6 Fixing linters test
The stestr version 2.3.1 introduces a function that breaks lint
tests when called by os-testr.
Excluding that version from test-requirements as workaround.
The bug is fixed on master so hopefully the fix will be included
in version stestr 2.3.2.

Change-Id: Ie06ab3e35915601d3af3888f13d72737d4ae81c9
2019-03-20 10:35:41 +01:00
John L. Villalovos 06514c2b79 Switch tox unit test command to use ostestr
This commit switches the tox command to use ostestr instead of calling
testr through setup.py. The primary advantage here is that it uses the
subunit-trace output filter. ostestr primarily exists as a replacement
for pretty_tox.sh bash scripts which spread like a plague through
OpenStack projects after Nova copied it from Tempest. (although
ostestr also provides some other useful features) Granted ironic-specs
wasn't using that, but this commit makes the switch to enable getting
the subunit-trace output which is generally useful.

Note that this dramatically increases output while running tests.
However, test failures are still at the bottom of the output, so it
shouldn't cause much pain, if any.

Change-Id: I4e0241eea113f994cadf68bdfe647065856d3a6d
2018-03-13 10:08:36 -07:00
Ruby Loo db259bfc1b Use doc8 style checker
This uses the doc8 style checker to check that the documents
conform to certain requirements, as documented at
https://pypi.python.org/pypi/doc8.

In particular, we no longer need to check for these in our test code
since they are checked via doc8:
- lines don't exceed 79 chars
- there are no trailing spaces
- there are no carriage returns

Some existing specs were modified because they had tabs or no newlines
at the end of the file.

Change-Id: If27281c7efd60c9f15ca07c723dd94a7d086c325
2015-09-30 20:29:50 +00:00