[PATCH v2 27/71] test: Add a generic function to skip delays