[PATCH v2 7/7] commandtest: Use virTestCompareToFile() in checkoutput()