[PATCH 03/22] buildman: Use an iterator to check test output