From e9a1f308b5359c2de1fda67816ef662ce727d275 Mon Sep 17 00:00:00 2001 From: Bruno Faccini Date: Tue, 19 Nov 2013 12:00:51 +0100 Subject: [PATCH] LU-4093 tests: fix typo and inverted test in original patch 1st/original patch for LU-4093 ticket, patch-set #3 of Change at http://review.whamcloud.com/8157/ with Id I3274e5864469251e6f2040377b84429e4f218f47, contains a typo and an inverted test that prevent it to work as expected but rather with reversed logic. Signed-off-by: Bruno Faccini Change-Id: I3f8031b85db116711312b8f7decf2c33761b89e6 Reviewed-on: http://review.whamcloud.com/8329 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Nathaniel Clark Reviewed-by: Andreas Dilger --- lustre/tests/sanity-hsm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index 348f94d..d4ba709 100644 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -178,9 +178,9 @@ copytool_cleanup() { idx=$(($mdtno - 1)) mdt_hsmctrl="mdt.$FSNAME-MDT000${idx}.hsm_control" oldstate=$(do_facet mds${mdtno} "$LCTL get_param -n " \ - "$MDT_HSMCTRL") + "$mdt_hsmctrl") # skip already stop[ed,ing] CDTs - echo $oldstate | grep stop || continue + echo $oldstate | grep stop && continue do_facet mds${mdtno} "$LCTL set_param $mdt_hsmctrl=shutdown" wait_result mds${mdtno} "$LCTL get_param -n $mdt_hsmctrl" \ -- 1.8.3.1