diff --git a/virttest/utils_misc.py b/virttest/utils_misc.py index eff7bcc910..ae4203da3f 100644 --- a/virttest/utils_misc.py +++ b/virttest/utils_misc.py @@ -3258,7 +3258,7 @@ def __get_kernel_messages(level_check=3, session=None): output: multi-line string containing all read messages status: exit code of read command """ - cmd = "dmesg -T -l %s|grep ." % ",".join( + cmd = "dmesg -T -l %s|grep . --color never" % ",".join( map(str, xrange(0, int(level_check)))) if session: environ = "guest"