[PATCH 1/3] testbot/LibvirtTool: Move the TestAgentd check to a separate function.