From af0f39f4a694d814cc69b8795fbb052e5179899a Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Fri, 4 Dec 2020 11:19:14 +0100 Subject: [PATCH 1/2] 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 From a08d6c469fbe3347f89b967d5952084866c501d6 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Fri, 4 Dec 2020 11:21:27 +0100 Subject: [PATCH 2/2] itest: update and sort error whitelist --- lntest/itest/log_error_whitelist.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lntest/itest/log_error_whitelist.txt b/lntest/itest/log_error_whitelist.txt index 79a5cb4a4..0dc897e8b 100644 --- a/lntest/itest/log_error_whitelist.txt +++ b/lntest/itest/log_error_whitelist.txt @@ -2,6 +2,7 @@