On 07/04/2012 06:50 PM, tangchen wrote:
> Hi~
>
> If I want to test "virsh -c" commands, any good idea to do it?
> I think class VM in libvirt_vm.py cannot meet my requirtment.
I have ever suggested to support remote URI, I think it should be what 
you want:

http://test.kernel.org/pipermail/autotest/2011-November/009440.html
> For example:
>
> I have 2 Hosts: Host1 with IP1 and Host2 with IP2.
> My autotest is running on Host1, and of course vm1 is also on Host1.
> Now I want to test "virsh -c" option.
>
> 1. If I run "virsh -c qemu://IP2/system xxx", I don't have a vm1 on Host2.
>     Migrating vm1 to Host2 is not a good idea, I think. Because it depends on 
> migration
>     test configurations, which makes my test more complicated.
> OR
> 2. If I ssh to Host2 and run "virsh -c qemu://IP1/system xxx", class VM 
> cannot do this.
>
> Now, I'm using method 2, and I don't use class VM. And all the "non -c" tests 
> are using
> class VM, but "-c" tests are not. This is strange.
>
>
> IMO, if virsh_cmd() can do this, class VM will support this kind of tests.
> So maybe I will modify virsh_cmd() one more time, using method 2.
>
> Any good idea to do this ?
>
> Thanks. :)
>

_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to