From 60ea5e49e11678edaa11223a3d6aa3d502964e4c Mon Sep 17 00:00:00 2001 From: ericm Date: Tue, 29 Jan 2008 22:51:04 +0000 Subject: [PATCH] branch: HEAD minor fix for test script missed by landing. --- lustre/tests/sanity-gss.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 1.8.3.1