mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
ceph: add option to expect valgind errors and fail if there are none
See #10328 Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
88e4a2451a
commit
9b3f36f91f
@ -246,8 +246,12 @@ def valgrind_post(ctx, config):
|
||||
log.error('saw valgrind issue %s in %s', kind, file)
|
||||
valgrind_exception = Exception('saw valgrind issues')
|
||||
|
||||
if valgrind_exception is not None:
|
||||
raise valgrind_exception
|
||||
if config.get('expect_valgrind_errors'):
|
||||
if not valgrind_exception:
|
||||
raise Exception('expected valgrind issues and found none')
|
||||
else:
|
||||
if valgrind_exception:
|
||||
raise valgrind_exception
|
||||
|
||||
@contextlib.contextmanager
|
||||
def crush_setup(ctx, config):
|
||||
|
Loading…
Reference in New Issue
Block a user