[libvirt] [PATCHv2 2/1] tests: add helper to determine when to skip expensive tests