[PATCH v2 18/31] test: boot: Update bootflow_iter() for console checking