[libvirt] [test-API][PATCH] Fix the missing ret variable problem