Benjamin Schubert pushed to branch bschubert/remove-pytest-runner at BuildStream / buildstream
Commits:
-
1e81b280
by Benjamin Schubert at 2018-10-25T13:32:35Z
1 changed file:
Changes:
| ... | ... | @@ -18,8 +18,6 @@ |
| 18 | 18 |
# Authors:
|
| 19 | 19 |
# Tristan Van Berkom <tristan vanberkom codethink co uk>
|
| 20 | 20 |
|
| 21 |
-from distutils import log
|
|
| 22 |
-from distutils.errors import DistutilsError
|
|
| 23 | 21 |
import os
|
| 24 | 22 |
import re
|
| 25 | 23 |
import shutil
|
| ... | ... | @@ -257,8 +255,7 @@ class PyTest(TestCommand): |
| 257 | 255 |
errno = pytest.main(shlex.split(self.addopts))
|
| 258 | 256 |
|
| 259 | 257 |
if errno:
|
| 260 |
- self.announce('Tests failed', log.ERROR)
|
|
| 261 |
- raise DistutilsError('Tests failed')
|
|
| 258 |
+ raise SystemExit(errno)
|
|
| 262 | 259 |
|
| 263 | 260 |
|
| 264 | 261 |
def get_cmdclass():
|
