From 1c24bab4be20965548a5118236ae1b89900c3cb7 Mon Sep 17 00:00:00 2001 From: BVK Chaitanya Date: Thu, 29 Jul 2010 16:59:49 +0530 Subject: [PATCH] updated testcase --- tests/grub_script_expansion.in | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/tests/grub_script_expansion.in b/tests/grub_script_expansion.in index 1ec58e3a9..11aafc853 100644 --- a/tests/grub_script_expansion.in +++ b/tests/grub_script_expansion.in @@ -17,19 +17,26 @@ # along with GRUB. If not, see . disks=`echo ls | @builddir@/grub-shell` -other=`echo echo \\* | @builddir@/grub-shell` +other=`echo echo \* | @builddir@/grub-shell` for d in $disks; do - if ! echo "$other" | grep "$d" >/dev/null; then - echo "$d missing from * expansion" >&2 - exit 1 - fi + if echo "$d" |grep ',' >/dev/null; then + if echo "$other" | grep "$d" >/dev/null; then + echo "$d should not occur in * expansion" >&2 + exit 1 + fi + else + if ! echo "$other" | grep "$d" >/dev/null; then + echo "$d missing from * expansion" >&2 + exit 1 + fi + fi done other=`echo echo '(*)' | @builddir@/grub-shell` for d in $disks; do - if ! echo "$other" | grep "$d" >/dev/null; then - echo "$d missing from (*) expansion" >&2 - exit 1 - fi + if ! echo "$other" | grep "$d" >/dev/null; then + echo "$d missing from (*) expansion" >&2 + exit 1 + fi done