4 Commits

Author SHA1 Message Date
James Page
4292155e3e Misc Python 3 compatibility fixes
Python 3 renames StringIO -> io.  Use six to deal
with this change.

Introduces new test dependency on six for StringIO.

Change-Id: Ia875b7fcbb976599053970ef79ed3f3474626bad
2015-06-23 09:49:06 +01:00
Thomas Bechtold
9832648353 Fix ValueError in subunit_trace
When a subunit stream for a testcase doesn't contain start end
enddate, the duration can't be calculated which leads to a:

ValueError: could not convert string to float

Check now if the duration is an empty string and add basic test
coverage based on ddt for the subunit_trace command.

Change-Id: I9953019794ba53fcfcb20e32fecbe94da22c9565
2015-04-18 13:40:32 +02:00
Matthew Treinish
f0e5175420 Add basic unit tests to check ostestr return codes
This commit adds some basic unit tests which runs ostestr in some
basic configurations against a fake test suite to ensure that the
ostestr always exits with a 0 on success and 1 on errors when running
tests. This is invaluable for using ostestr in ci systems.
2015-03-18 22:51:07 -04:00
Matthew Treinish
d1049b1ad6 Initial Cookiecutter Commit. 2015-03-17 14:58:46 -04:00