[PATCH v2 06/10] test: Add a way to check part of a console line or skip it