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