[libvirt] [PATCH 1/2] tests: simplify common setup