diff options
| author | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2019-10-16 09:51:51 +0200 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2019-10-23 12:58:36 +0000 |
| commit | 22cea7f08cd853572476780e80cd7ee22fbca56f (patch) | |
| tree | 89a1ed8f874acedf26bc14a288acfc624bb506af /tests/check-logs.sh | |
| parent | ba228529b1554b494f871c8e997d27f4cdd08bb9 (diff) | |
| download | kolla-ansible-22cea7f08cd853572476780e80cd7ee22fbca56f.tar.gz kolla-ansible-22cea7f08cd853572476780e80cd7ee22fbca56f.zip | |
CI: run check-logs in post too
Also makes check-logs clear the aggregate files
to prevent duplicates due to upgrade and post.
Change-Id: I72377b6ac48e29dc5e24d1e3bd343e87b74a7a71
Diffstat (limited to 'tests/check-logs.sh')
| -rwxr-xr-x | tests/check-logs.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/check-logs.sh b/tests/check-logs.sh index 179a7f6f3..c298dd386 100755 --- a/tests/check-logs.sh +++ b/tests/check-logs.sh @@ -19,6 +19,8 @@ function check_file_for_level { any_critical=0 for level in CRITICAL ERROR WARNING; do all_file=/tmp/logs/kolla/all-${level}.log + # remove the file to avoid collecting duplicates (upgrade, post) + rm -f $all_file any_matched=0 echo "Checking for $level log messages" for f in $(sudo find /var/log/kolla/ -type f); do |
