[PATCH] Check that package globs install more than just the first package.

Vratislav Podzimek vpodzime at redhat.com
Thu Feb 5 08:26:52 UTC 2015


On Tue, 2015-02-03 at 13:42 +0100, David Shea wrote:
> ---
>  tests/kickstart_tests/packages-and-groups-1.ks | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/tests/kickstart_tests/packages-and-groups-1.ks b/tests/kickstart_tests/packages-and-groups-1.ks
> index 24b6c93..a862fbf 100644
> --- a/tests/kickstart_tests/packages-and-groups-1.ks
> +++ b/tests/kickstart_tests/packages-and-groups-1.ks
> @@ -77,6 +77,13 @@ if [[ \$? != 0 ]]; then
>      shutdown -h now
>  fi
>  
> +# Make sure that more than just emacs and its dependencies were installed.
> +count=\$(rpm -qa emacs\* | wc -l)
> +if [[ \$count -lt 50 ]]; then
> +    echo '*** emacs glob was not fully installed' > /root/RESULT
> +    shutdown -h now
> +fi
> +
>  # Testing #4 - ibus stuff should not be installed.
>  rpm -qa ibus\*
>  if [[ \$? == 0 ]]; then
-lt 50? Nice! This looks good to me.

-- 
Vratislav Podzimek

Anaconda Rider | RHCE | Red Hat, Inc. | Brno - Czech Republic




More information about the anaconda-patches mailing list