core-admin/test-packages/libvirt.py
Wojtek Porczyk 341bbb4ef3 run-tests: Script for running tests in repo
Currently additional steps are needed (those have to be done manually):
- allow writing to /var/lib/qubes
- copy /etc/qubes/storage.conf
2016-04-20 13:54:56 +02:00

16 lines
446 B
Python

"""mock libvirt module
WARNING: you did not import real libvirt module
This is needed, because we don't currently ship libvirt-python for templates.
The module contains libvirtError and openReadOnly() function, which
does nothing and raises the aforementioned exception. More functions can be
added as needed.
"""
class libvirtError(Exception):
pass
def openReadOnly(*args, **kwargs):
raise libvirtError('mock module, always raises')