[libvirt] [PATCH] virpcitest: Separate two functions properly