From: Evan Hunt Date: Mon, 1 Jul 2013 21:08:31 +0000 (-0700) Subject: [master] use egrep as solaris doesn't like grep -E X-Git-Tag: v9.10.0a1~247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ba84a5bdb2b4f2936404977550846b61d9d2308;p=thirdparty%2Fbind9.git [master] use egrep as solaris doesn't like grep -E --- diff --git a/bin/tests/system/cacheclean/tests.sh b/bin/tests/system/cacheclean/tests.sh index 37d164b1ca0..3a4ae1fda25 100644 --- a/bin/tests/system/cacheclean/tests.sh +++ b/bin/tests/system/cacheclean/tests.sh @@ -94,7 +94,7 @@ echo "I:reset and check that records are correctly cached initially" ret=0 load_cache dump_cache -nrecords=`grep flushtest.example ns2/named_dump.db | grep -v '^;' | grep -Ew '(TXT|ANY)'| wc -l` +nrecords=`grep flushtest.example ns2/named_dump.db | grep -v '^;' | egrep '(TXT|ANY)'| wc -l` [ $nrecords -eq 17 ] || { ret=1; echo "I: found $nrecords records expected 17"; } if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` @@ -180,7 +180,7 @@ status=`expr $status + $ret` echo "I:check the number of cached records remaining" ret=0 dump_cache -nrecords=`grep flushtest.example ns2/named_dump.db | grep -v '^;' | grep -Ew '(TXT|ANY)' | wc -l` +nrecords=`grep flushtest.example ns2/named_dump.db | grep -v '^;' | egrep '(TXT|ANY)' | wc -l` [ $nrecords -eq 17 ] || { ret=1; echo "I: found $nrecords records expected 17"; } if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret`