]> git.proxmox.com Git - grub2.git/blobdiff - tests/grub_script_expansion.in
bump version to 2.06-13+pmx2
[grub2.git] / tests / grub_script_expansion.in
index 1575bff619542ec9ab868c542103cb4336a3ec67..9d0dcdd29100904bfba93ccd429340d4a5afbcf3 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#! @BUILD_SHEBANG@
 set -e
 
 # Run GRUB script in a Qemu instance
@@ -17,16 +17,16 @@ set -e
 # You should have received a copy of the GNU General Public License
 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
-disks=`echo ls | @builddir@/grub-shell`
+disks=`echo ls | @builddir@/grub-shell| grep -av '^Network protocols:$'| grep -av '^tftp http $'`
 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 "$d" >/dev/null; then
+    if ! echo "$other" | grep -F -- "$d" >/dev/null; then
        echo "$d missing from (*) expansion" >&2
        exit 1
     fi