GitHub user wilderrodrigues opened a pull request:

    https://github.com/apache/cloudstack/pull/342

    Mocking the Connect object used in the LibvirtMigrateCommandWrapper.

      - When executing the tests in an environment where Libvirt is also 
installed, it caused errors.
    
    Hi @bhaisaab and @rsafonseca,
    
    The Connect class is now being mocked, which means it will not load any 
native library.
    
    Build environment:
    
    [root@kvm3 cloudstack]# uname -a
    Linux kvm3 3.10.0-229.1.2.el7.x86_64 #1 SMP Fri Mar 27 03:04:26 UTC 2015 
x86_64 x86_64 x86_64 GNU/Linux
    
    [root@kvm3 cloudstack]# cat /etc/centos-release
    CentOS Linux release 7.1.1503 (Core)
    
    [root@kvm3 cloudstack]# virsh --version=long 
    Virsh command line tool of libvirt 1.2.8
    See web site at http://libvirt.org/
    
    Compiled with support for:
     Hypervisors: QEMU/KVM LXC ESX Test
     Networking: Remote Network Bridging Interface netcf Nwfilter VirtualPort
     Storage: Dir Disk Filesystem SCSI Multipath iSCSI LVM Gluster
     Miscellaneous: Daemon Nodedev SELinux Secrets Debug DTrace Readline Modular
    
    Command executed: mvn -P developer,systemvm clean install
    
    [INFO] 
------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] 
------------------------------------------------------------------------
    [INFO] Total time: 16:50.546s
    [INFO] Finished at: Mon Jun 01 09:04:28 EDT 2015
    [INFO] Final Memory: 103M/671M
    [INFO] 
------------------------------------------------------------------------
    [root@kvm3 cloudstack]#
    
    Cheers,
    Wilder

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/schubergphilis/cloudstack 
fix/testMigrateCommand

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/342.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #342
    
----
commit 2c5ddc0ccd806d1fd43f8eb96587a86fe242724d
Author: wilderrodrigues <wrodrig...@schubergphilis.com>
Date:   2015-06-01T12:45:43Z

    Mocking the Connect object used in the LibvirtMigrateCommandWrapper.
      - When executing the tests in an environment where Libvirt is also 
installed, it caused errors.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to