Bug 1331846 - Exclude the lines which have "include" appeared in the middle. r=dbaron
authorTing-Yu Lin <tlin@mozilla.com>
Wed, 18 Jan 2017 11:20:56 +0800
changeset 375224 fe22af79bacf6db526737536eab551caf68ba440
parent 375223 69843027051d2c05dd704e943da661a2f950998a
child 375242 aa3e49299a3aa5cb0db570532e3df9e75d30c2d1
child 375244 049ab1a92da627110e5c9d58bc039a772efc7b06
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1331846
milestone53.0a1
first release with
nightly mac
fe22af79bacf / 53.0a1 / 20170202055853 / files
nightly win32
fe22af79bacf / 53.0a1 / 20170212232621 / files
nightly win64
fe22af79bacf / 53.0a1 / 20170201052715 / files
nightly linux32
nightly linux64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly mac
nightly win32
nightly win64
Bug 1331846 - Exclude the lines which have "include" appeared in the middle. r=dbaron 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
layout/reftests/w3c-css/submitted/check-for-references.sh
--- 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"