Whamcloud - gitweb
LU-9967 tests: run-llog to cleanup properly 57/29057/2
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Mon, 18 Sep 2017 20:17:29 +0000 (23:17 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 9 Oct 2017 03:49:53 +0000 (03:49 +0000)
move ignore_errors so that setup's error is ignored, the script
continues with detach command needed to release the module.

Change-Id: I899de7a321fa927ca9884a6e4f9e8785bbc46f7c
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-on: https://review.whamcloud.com/29057
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Yang Sheng <yang.sheng@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/run-llog.sh

index edc582f..d8da4fc 100644 (file)
@@ -20,9 +20,9 @@ RC=0
 # Using ignore_errors will allow lctl to cleanup even if the test fails.
 eval "$LCTL <<-EOF || RC=2
        attach llog_test llt_name llt_uuid
+       ignore_errors
        setup $MGS
        device llt_name
-       ignore_errors
        cleanup
        detach
 EOF"