buildman: Use an iterator to check test output