[PATCH 6/9] commandtest: Use virTestCompareToFile() in checkoutput()