diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2018-07-03 00:45:30 +0300 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2018-07-17 04:14:01 +0000 |
commit | 02dbb7a68f828863e5b71dc15488e665d484ab6e (patch) | |
tree | 4ae10586c3f26f9e73a6d533bbd4af88094c6ef5 /glustolibs-io | |
parent | 87f9679588c54c550447acdc8f0cc15626c7d881 (diff) |
Shorten all the logs around verify_io_procs
No functional change, just make the tests a bit more readable.
It could be moved to a decorator later on, wrapping tests.
Change-Id: I484bb8b46907ee8f33dfcf4c960737a21819cd6a
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'glustolibs-io')
-rw-r--r-- | glustolibs-io/glustolibs/io/utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/glustolibs-io/glustolibs/io/utils.py b/glustolibs-io/glustolibs/io/utils.py index 0f6811310..8b9a9e196 100644 --- a/glustolibs-io/glustolibs/io/utils.py +++ b/glustolibs-io/glustolibs/io/utils.py @@ -258,7 +258,10 @@ def validate_io_procs(all_mounts_procs, mounts): else: g.log.info("IO Successful on %s:%s", mounts[i].client_system, mounts[i].mountpoint) - return _rc + if _rc: + g.log.info("IO is successful on all mounts") + return True + return False def wait_for_io_to_complete(all_mounts_procs, mounts): |