[Libvirt-cim] [PATCH] fix xmt-makefv.sh die() output

Jincheng Miao jmiao at redhat.com
Sat Aug 3 08:14:33 UTC 2013


Sorry, I forget to identify this is for cimtest.

----- Original Message -----
> From: "Jincheng Miao" <jmiao at redhat.com>
> To: libvirt-cim at redhat.com
> Cc: "Jincheng Miao" <jmiao at redhat.com>
> Sent: Saturday, August 3, 2013 4:01:28 PM
> Subject: [Libvirt-cim][PATCH] fix xmt-makefv.sh die() output
> 
> If xmt-makefv.sh failed, it will prompt FAILED: <reason>. But the reason part
> is blank. It is because die() in xmt-makefv.sh use $i to show the reason.
> That
> should be $1 rather than $i.
> 
> Signed-off-by: Jincheng Miao <jmiao at redhat.com>
> ---
>  suites/libvirt-cim/images/xmt-makefv.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/suites/libvirt-cim/images/xmt-makefv.sh
> b/suites/libvirt-cim/images/xmt-makefv.sh
> index 64ca362..1cf6a0f 100755
> --- a/suites/libvirt-cim/images/xmt-makefv.sh
> +++ b/suites/libvirt-cim/images/xmt-makefv.sh
> @@ -31,7 +31,7 @@ else
>  fi
>  
>  die() {
> -    echo "FAILED: $i" >&2
> +    echo "FAILED: $1" >&2
>   
>      umount $TMPMOUT >/dev/null 2>&1
>      kpartx -d $loop >/dev/null 2>&1
> --
> 1.8.3.1
> 
> 




More information about the Libvirt-cim mailing list