Bug 1331846 - Exclude the lines which have "include" appeared in the middle.
Change "include" match rule from "^include" to "include " since there might
be "skip-if" or other <failure-type> conditions before the "include". The
single space after is added so that tests like "include.html" won't be
excluded.
DONTBUILD because this patch modifies a script checking for the validity of
reftests, which is NPOTB.
MozReview-Commit-ID: 3tFFIo8RKFp
--- a/layout/reftests/w3c-css/submitted/check-for-references.sh
+++ b/layout/reftests/w3c-css/submitted/check-for-references.sh
@@ -1,14 +1,14 @@
#!/bin/bash
cd "$(dirname "$0")"
find . -name reftest.list | sed 's,/reftest.list$,,' | while read DIRNAME
do
- cat "$DIRNAME/reftest.list" | grep -v "^\(include\|default-preferences\)" | sed 's/ #.*//;s/^#.*//;s/.* == /== /;s/.* != /!= /' | grep -v "^ *$" | while read TYPE TEST REF
+ cat "$DIRNAME/reftest.list" | grep -v -e "^default-preferences" -e "include " | sed 's/ #.*//;s/^#.*//;s/.* == /== /;s/.* != /!= /' | grep -v "^ *$" | while read TYPE TEST REF
do
REFTYPE=""
if [ "$TYPE" == "==" ]
then
REFTYPE="match"
elif [ "$TYPE" == "!=" ]
then
REFTYPE="mismatch"