use genexpr & list comp in minionswarm test
Merge pull request #4815 from hulu/swarm-test-comprehension

use genexpr & list comp in minionswarm test