Whamcloud - gitweb
LU-11503 tests: fix "division by 0" defect 50/33350/6
authorElena Gryaznova <c17455@cray.com>
Wed, 28 Nov 2018 12:04:32 +0000 (15:04 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 4 Jan 2019 04:47:06 +0000 (04:47 +0000)
commitc6928f0e479f1eed7b4c3f2373ac1e71bb812d59
tree57af3800c45a99e8299fbaf51f6a579fca583516
parent4014ddbb235043e3adc882c6a6df10e7887a7835
LU-11503 tests: fix "division by 0" defect

if stop file is created before ha_repeat_mpi_load() or
ha_repeat_nonmpi_load() are started nr_loops is equal to 0
and test fails with
   (1476438773 - start_time) / nr_loops: division by 0
Patch fixes this case.

Patch correctly processes ha_dump_logs()->ha_on() rc
to avoid the test failure when nodes are not accessible for
logs dumping.

Test-Parameters: trivial
Signed-off-by: Elena Gryaznova <c17455@cray.com>
Cray-bug-id: LUS-2205
Reviewed-by: Andrew Perepechko <c17827@cray.com>
Reviewed-by: Alexander Boyko <c17825@cray.com>
Change-Id: I97957875685492ddec66daa7c353ff6ef930933c
Reviewed-on: https://review.whamcloud.com/33350
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexandr Boyko <c17825@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/ha.sh