tests/acceptance: Extract the code to clear dmesg and wait for CRW reports