From af0f39f4a694d814cc69b8795fbb052e5179899a Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Fri, 4 Dec 2020 11:19:14 +0100 Subject: [PATCH] itest: fix log whitelist check Because a previous PR changed the location of the itest log files, we also need to update the script that looks for non-whitelisted errors. --- lntest/itest/log_check_errors.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lntest/itest/log_check_errors.sh b/lntest/itest/log_check_errors.sh index 15296845b..009c3d97f 100755 --- a/lntest/itest/log_check_errors.sh +++ b/lntest/itest/log_check_errors.sh @@ -5,7 +5,7 @@ BASEDIR=$(dirname "$0") echo "" # Filter all log files for errors, substitute variable data and match against whitelist. -cat $BASEDIR/*.log | grep "\[ERR\]" | \ +find $BASEDIR -name "*.log" | xargs grep -h "\[ERR\]" | \ sed -r -f $BASEDIR/log_substitutions.txt | \ sort | uniq | \ grep -Fvi -f $BASEDIR/log_error_whitelist.txt