[libvirt] [PATCH for 1.2.7 4/8] tests: Move qemu caps XML parsing into shared unit