[Libvirt-cim] [PATCH] [TEST] Fix xmt-makefvt.sh to work with systems with no non-Xen kernel

Guo Lian Yun yunguol at cn.ibm.com
Fri Aug 22 01:47:46 UTC 2008


libvirt-cim-bounces at redhat.com wrote on 2008-08-19 05:09:49:

> # HG changeset patch
> # User Kaitlin Rupert <karupert at us.ibm.com>
> # Date 1219093729 25200
> # Node ID 0ffa5529fe3bc599cba875ac3927efe9e56b8626
> # Parent  4cbb5bea5f3b72a7a716bb9d3c4b6e8d9c3f4596
> [TEST] Fix xmt-makefvt.sh to work with systems with no non-Xen kernel.
> 
> Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>
> 
> diff -r 4cbb5bea5f3b -r 0ffa5529fe3b 
suites/libvirt-cim/images/xmt-makefv.sh
> --- a/suites/libvirt-cim/images/xmt-makefv.sh   Mon Aug 18 13:18:16 2008 
-0700
> +++ b/suites/libvirt-cim/images/xmt-makefv.sh   Mon Aug 18 14:08:49 2008 
-0700
> @@ -85,7 +85,18 @@
>  kernel_path() {
>      local prefix=$1
> 
> -    find /boot | grep vmlinuz | grep -v xen | tail -n1
> +    local image=`find /boot | grep vmlinuz | grep -v xen | tail -n1`
> +
> +    if [ -z $image ]; then
> +        local dummy_path="cimtest-dummy-image"
> +
> +        echo "No non-Xen kernel found.  Creating a fake image.\n"
> +        touch /boot/vmlinuz-$(dummy_path)
> +        mkdir /lib/modules/$(dummy_path)
> +        image="/boot/vmlinuz-$(dummy_path)"
> +    fi
> +
> +    echo $image
>  }

  +1 for me.

  But I don't know whether we have to remove the fake image after test 
running, If so, how?
 
  Thanks!
> 
>  copy_in_kernel() {
> 
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080822/9811f69f/attachment.htm>


More information about the Libvirt-cim mailing list