• Andrea Bolognani's avatar
    tests: Explicitly spawn a session libvirt-dbus instance · c67913c9
    Andrea Bolognani authored
    Tests are performed using the session D-Bus instance, so we
    should launch libvirt-dbus in session mode as well.
    
    This was working fine when running the tests as a regular
    user, because in that case libvirt-dbus would default to
    session mode, but fail when running them as root because
    libvirt-dbus would run in system mode and consequently not
    show up on the session bus.
    
    Of course building and runnning the test suite as root is
    a pretty bad idea in general, but a lot of distributions
    run at least part of their package build steps with pretend
    root privileges (eg. fakeroot), so we have to make sure it
    works in that scenario too.
    Signed-off-by: 's avatarAndrea Bolognani <abologna@redhat.com>
    Reviewed-by: 's avatarKaterina Koukiou <kkoukiou@redhat.com>
    c67913c9
Name
Last commit
Last update
..
Makefile.am Loading commit data...
conftest.py Loading commit data...
libvirttest.py Loading commit data...
test_connect.py Loading commit data...
test_domain.py Loading commit data...
test_network.py Loading commit data...
test_nodedev.py Loading commit data...
test_storage.py Loading commit data...
test_util.c Loading commit data...
travis-run Loading commit data...
xmldata.py Loading commit data...