[libvirt] [test-API PATCHv2 1/2] utils: Add exception for general test errors