Whamcloud - gitweb
LU-10834 tests: fix cleanup_77c() defect 18/31918/2
authorElena Gryaznova <c17455@cray.com>
Mon, 9 Apr 2018 18:39:05 +0000 (21:39 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 14 Apr 2018 12:15:29 +0000 (12:15 +0000)
commit5fc3c6a4fadcadb4838eedc39695b41984c7c0fa
tree751718a1e7b54838b5d9876829833638e4f8a2e9
parente2aa51c7f88d0db6e40a99d75f9d5161bb762c8c
LU-10834 tests: fix cleanup_77c() defect

Check the length of string is non-zero properly.
Without this fix cleanup_77c() calls:
 "rm -f *" in case of empty $osc_file_prefix, and
 "do_facet ost1 rm -f *" in case of empty $ost_file_prefix

Signed-off-by: Elena Gryaznova <c17455@cray.com>
Cray-bug-id: LUS-5817
Test-Parameters: trivial testlist=sanity envdefinitions="ONLY=77c"
Reviewed-by: Vladimir Saveliev <c17830@cray.com>
Reviewed-by: Andrew Perepechko <c17827@cray.com>
Change-Id: Id3f3ec52c965b15900f7a649120b89267daa9810
Reviewed-on: https://review.whamcloud.com/31918
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity.sh