[libvirt PATCH 5/7] virshtest: refactor testCompareOutputLit