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.
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.
This uses the doc8 style checker to check that the documents
conform to certain requirements, as documented at
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.