diff --git a/src/tests/keywords/all.mk b/src/tests/keywords/all.mk index 8fbd6f76bdd5e..74cafdb8473de 100644 --- a/src/tests/keywords/all.mk +++ b/src/tests/keywords/all.mk @@ -164,7 +164,7 @@ $(OUTPUT)/%: $(DIR)/% $(TEST_BIN_DIR)/unit_test_module | $(KEYWORD_RADDB) $(KEYW rm -f $(BUILD_DIR)/tests/test.keywords; \ exit 1; \ fi; \ - FOUND=$$(grep 'Error : src/tests/keywords/' $@.log | head -1 | sed 's/]:.*//;s/.*\[//;s/\].*//'); \ + FOUND=$$(grep 'Error : src/tests/keywords/' $@.log | egrep -v -- '-->' | head -1 | sed 's/]:.*//;s/.*\[//;s/\].*//'); \ EXPECTED=$$(grep -n ERROR $< | sed 's/:.*//'); \ if [ "$$EXPECTED" != "$$FOUND" ]; then \ cat $@.log; \