[libvirt] [PATCH 1/2] tests: merge code for UNIX and TCP socket testing