]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* tests/grub_script_expansion.in: Use fixed-string grep to skip over
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Apr 2013 23:53:33 +0000 (01:53 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Apr 2013 23:53:33 +0000 (01:53 +0200)
firmware error messages.

ChangeLog
tests/grub_script_expansion.in

index 74690301f262a581b90069b15b68eccd532b6b95..139120288468f0333ae49ec4ec6898c109dfdeb0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * tests/grub_script_expansion.in: Use fixed-string grep to skip over
+       firmware error messages.
+
 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
index 03dc510a2a58f44206852c5deec19f2be3fb09d2..e46401c4c9f1b6bea3c7bed452882d373e51bd61 100644 (file)
@@ -21,12 +21,12 @@ disks=`echo ls | @builddir@/grub-shell| grep -av '^Network protocols:$'| grep -a
 other=`echo insmod regexp\; echo \* | @builddir@/grub-shell`
 for d in $disks; do
     if echo "$d" |grep ',' >/dev/null; then
-       if echo "$other" | grep "$d" >/dev/null; then
+       if echo "$other" | grep -F -- "$d" >/dev/null; then
            echo "$d should not occur in * expansion" >&2
            exit 1
        fi
     else
-       if ! echo "$other" | grep "$d" >/dev/null; then
+       if ! echo "$other" | grep -F -- "$d" >/dev/null; then
            echo "$d missing from * expansion" >&2
            exit 1
        fi
@@ -35,7 +35,7 @@ done
 
 other=`echo insmod regexp\; echo '(*)' | @builddir@/grub-shell`
 for d in $disks; do
-    if ! echo "$other" | grep -F "$d" >/dev/null; then
+    if ! echo "$other" | grep -F -- "$d" >/dev/null; then
        echo "$d missing from (*) expansion" >&2
        exit 1
     fi