Whamcloud - gitweb
LU-5857 tests: check lctl return value in check_catastrophe() 40/12640/4
authorJian Yu <jian.yu@intel.com>
Wed, 3 Dec 2014 02:26:10 +0000 (18:26 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 4 Dec 2014 13:36:21 +0000 (13:36 +0000)
commit43d19e90c719402a8d73e559ce4368aa55a4f16b
tree1b02d642db42f695c3b079c23ead655a5cb23921
parent709e5881d9e0c395105cfbfb003ca93f776cef26
LU-5857 tests: check lctl return value in check_catastrophe()

This patch fixes check_catastrophe() to check the return value of
lctl command. The catastrophe value would be checked only if the
lctl command passed.

The patch also simplifies the function to check catastrophe value
on all of the test nodes without separating local and remote nodes.

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I0ffdafe27b0829dde5a8ea136be76e35b5ea8f43
Reviewed-on: http://review.whamcloud.com/12640
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/test-framework.sh