Whamcloud - gitweb
LU-6056 tests: fix -hsm wrong usage of bash's local built-in 59/13159/3
authorBruno Faccini <bruno.faccini@intel.com>
Fri, 19 Dec 2014 22:42:05 +0000 (23:42 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 5 Jan 2015 18:59:06 +0000 (18:59 +0000)
commit37145b39ecc2bd78e669f962ec6cfe7cebb06c5c
treecc4990ac522c296e54138aba98bc11c191bd5ab2
parentdd084b62170ecb59add9ab571c0352b66bb276bd
LU-6056 tests: fix -hsm wrong usage of bash's local built-in

In sanity-hsm test script, there were several places where the
bash's local built-in was used with assignments from a command
substitution and command's exit code was tested after.

This is a wrong usage since the 'local' builtin does not propagate
the exit code.

Signed-off-by: Bruno Faccini <bruno.faccini@intel.com>
Change-Id: I4257e55ec61ed0c4e48812407b5cf82ab316b701
Reviewed-on: http://review.whamcloud.com/13159
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-hsm.sh