From 3ca4c73e478ddb9b525a24164e523c8487658151 Mon Sep 17 00:00:00 2001 From: Pavel Tikhomirov Date: Mon, 1 Jul 2019 11:28:43 +0300 Subject: [PATCH] zdtm: make grep_errors also grep warnings It is inspired by the discussion about inotify fix: https://github.com/checkpoint-restore/criu/pull/728#issuecomment-506929427 From one point of view, warnings might be important to understand why we detect some visible change in the environment after c/r-ing the process, and if this change is expected or not. So we should add "Warn" messages to the output. From over point, these warnings if they are expected, can spoil our final logs with a lot of unnecessary details, so add changes in previous patches to silence the most noisy of these warnings. Signed-off-by: Pavel Tikhomirov --- test/zdtm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm.py b/test/zdtm.py index 000f590b0..c64fb2e49 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -1915,7 +1915,7 @@ def grep_errors(fname): before.append(l) if len(before) > 5: before.pop(0) - if "Error" in l: + if "Error" in l or "Warn" in l: if first: print_fname(fname, 'log') print_sep("grep Error", "-", 60)