[PATCH net-next 3/5] selftests: drv-net: factor out parsing of the env