Commit 85883224 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#9513 Fixup test020

Remove dependency on number of fields in debug output
parent 94fbd968
...@@ -313,18 +313,12 @@ FIRST=$CNT ...@@ -313,18 +313,12 @@ FIRST=$CNT
# queries 2-6,8-10 are cacheable # queries 2-6,8-10 are cacheable
CACHEABILITY=0111110111 CACHEABILITY=0111110111
grep CACHEABLE $LOG2 | awk '{ grep CACHEABLE $LOG2 | awk '
if ($3 == "NOT") /NOT CACHEABLE/{printf "Query %d not cacheable\n",NR}
printf "Query %d not cacheable\n",NR /QUERY CACHEABLE/{printf "Query %d cacheable\n",NR}'
else CACHED=`grep CACHEABLE $LOG2 | awk '
printf "Query %d cacheable\n",NR /NOT CACHEABLE/{printf "0"}
}' /QUERY CACHEABLE/{printf "1"}'`
CACHED=`grep CACHEABLE $LOG2 | awk '{
if ($3 == "NOT")
printf "0"
else
printf "1"
}'`
if test "$CACHEABILITY" = "$CACHED" ; then if test "$CACHEABILITY" = "$CACHED" ; then
echo "Successfully verified cacheability" echo "Successfully verified cacheability"
...@@ -466,22 +460,12 @@ fi ...@@ -466,22 +460,12 @@ fi
#not answerable because of sizelimit, queries contained in it are no longer #not answerable because of sizelimit, queries contained in it are no longer
#answerable as well #answerable as well
ANSWERABILITY=1110011 ANSWERABILITY=1110011
grep ANSWERABLE $LOG2 | awk "BEGIN {FIRST=$FIRST}"'{ grep ANSWERABLE $LOG2 | awk "BEGIN {FIRST=$FIRST}"'
if (NR > FIRST) { /NOT ANSWERABLE/{if (NR > FIRST) printf "Query %d not answerable\n",NR}
if ($3 == "NOT") /QUERY ANSWERABLE/{if (NR > FIRST) printf "Query %d answerable\n",NR}'
printf "Query %d not answerable\n",NR ANSWERED=`grep ANSWERABLE $LOG2 | awk "BEGIN {FIRST=$FIRST}"'
else /NOT ANSWERABLE/{if (NR > FIRST) printf "0"}
printf "Query %d answerable\n",NR /QUERY ANSWERABLE/{if (NR > FIRST) printf "1"}'`
}
}'
ANSWERED=`grep ANSWERABLE $LOG2 | awk "BEGIN {FIRST=$FIRST}"'{
if (NR > FIRST) {
if ($3 == "NOT")
printf "0"
else
printf "1"
}
}'`
if test "$ANSWERABILITY" = "$ANSWERED" ; then if test "$ANSWERABILITY" = "$ANSWERED" ; then
echo "Successfully verified answerability" echo "Successfully verified answerability"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment