X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-gss.sh;h=56370ce968e0e2779ba5ee313a1b80521b337a47;hp=69d23c761ed46986d1e4472ad74fcaa4a7c27321;hb=60ea5e49e11678edaa11223a3d6aa3d502964e4c;hpb=3192e52a89946f12fd36d28a686c169d01d36e64 diff --git a/lustre/tests/sanity-gss.sh b/lustre/tests/sanity-gss.sh index 69d23c7..56370ce 100644 --- a/lustre/tests/sanity-gss.sh +++ b/lustre/tests/sanity-gss.sh @@ -265,19 +265,20 @@ restore_to_default_flavor() echo "restoring to default flavor..." - nrule=`do_facet mgs cat $proc 2>/dev/null | grep "$FSNAME.srpc.flavor." | wc -l` + nrule=`do_facet mgs cat $proc 2>/dev/null | grep ".srpc.flavor." | wc -l` # remove all existing rules if any if [ $nrule -ne 0 ]; then - echo "remove existing $nrule rules" - for rule in `do_facet mgs cat $proc 2>/dev/null | grep "$FSNAME.srpc.flavor."`; do + echo "$nrule existing rules" + for rule in `do_facet mgs cat $proc 2>/dev/null | grep ".srpc.flavor."`; do + echo "remove rule: $rule" spec=`echo $rule | awk -F = '{print $1}'` do_facet mgs "$LCTL conf_param $spec=" done fi # verify no rules left - nrule=`do_facet mgs cat $proc 2>/dev/null | grep "$FSNAME.srpc.flavor." | wc -l` + nrule=`do_facet mgs cat $proc 2>/dev/null | grep ".srpc.flavor." | wc -l` [ $nrule -ne 0 ] && error "still $nrule rules left" # wait for default flavor to be applied