Benjamin Schubert pushed to branch bschubert/remove-pytest-runner at BuildStream / buildstream
Commits:
-
3a811214
by Benjamin Schubert at 2018-10-24T15:48:58Z
1 changed file:
Changes:
... | ... | @@ -233,9 +233,10 @@ class PyTest(TestCommand): |
233 | 233 |
"dependencies"),
|
234 | 234 |
]
|
235 | 235 |
|
236 |
+ # pylint: disable=attribute-defined-outside-init
|
|
236 | 237 |
def initialize_options(self):
|
237 | 238 |
super().initialize_options()
|
238 |
- self.addopts = "" # pylint: disable=attribute-defined-outside-init
|
|
239 |
+ self.addopts = ""
|
|
239 | 240 |
self.index_url = None
|
240 | 241 |
|
241 | 242 |
def run(self):
|
... | ... | @@ -255,8 +256,7 @@ class PyTest(TestCommand): |
255 | 256 |
errno = pytest.main(shlex.split(self.addopts))
|
256 | 257 |
|
257 | 258 |
if errno:
|
258 |
- msg = 'Test failed: %s' % test.result
|
|
259 |
- self.announce(msg, log.ERROR)
|
|
259 |
+ self.announce('Tests failed', log.ERROR)
|
|
260 | 260 |
raise DistutilsError(msg)
|
261 | 261 |
|
262 | 262 |
@property
|