Skip to content

Commit e08abf3

Browse files
ravanellialinefm
authored andcommitted
Issue #1224 : kvmusertest.py: hardcoded path prevents kimchi module from loading when /usr/local prefixes /var
1 parent bc8f14e commit e08abf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kvmusertests.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import libvirt
2222
import psutil
23+
from wok.plugins.kimchi.config import get_libvirt_path
2324
from wok.rollbackcontext import RollbackContext
2425

2526
KVMUSERTEST_VM_NAME = 'KVMUSERTEST_VM'
@@ -60,7 +61,7 @@ def probe_user(cls):
6061
f = libvirt.VIR_DOMAIN_START_AUTODESTROY
6162
dom = conn.createXML(xml, flags=f)
6263
rollback.prependDefer(dom.destroy)
63-
filename = '/var/run/libvirt/qemu/%s.pid' % KVMUSERTEST_VM_NAME
64+
filename = get_libvirt_path() + '/qemu/%s.pid' % KVMUSERTEST_VM_NAME
6465
with open(filename) as f:
6566
pidStr = f.read()
6667
p = psutil.Process(int(pidStr))

0 commit comments

Comments
 (0)