[CRIU] [PATCH] zdtm.py: add a test name into a progress line

Andrei Vagin avagin at openvz.org
Mon Dec 12 16:27:35 PST 2016


From: Andrei Vagin <avagin at virtuozzo.com>

Now it is impossible to find when a test has been started,
but sometimes we want to knwo which tests were running in a specified moment.

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 test/zdtm.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/zdtm.py b/test/zdtm.py
index bc1a055..0e9f5fb 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -1354,9 +1354,9 @@ class launcher:
 			print >> self.__file_report, "TAP version 13"
 			print >> self.__file_report, "1.." + str(nr_tests)
 
-	def __show_progress(self):
+	def __show_progress(self, msg):
 		perc = self.__nr * 16 / self.__total
-		print "=== Run %d/%d %s" % (self.__nr, self.__total, '=' * perc + '-' * (16 - perc))
+		print "=== Run %d/%d %s %s" % (self.__nr, self.__total, '=' * perc + '-' * (16 - perc), msg)
 
 	def skip(self, name, reason):
 		print "Skipping %s (%s)" % (name, reason)
@@ -1376,7 +1376,7 @@ class launcher:
 			self.wait_all()
 
 		self.__nr += 1
-		self.__show_progress()
+		self.__show_progress(name)
 
 		nd = ('nocr', 'norst', 'pre', 'iters', 'page_server', 'sibling', 'stop', 'lazy_pages', 'empty_ns',
 				'fault', 'keep_img', 'report', 'snaps', 'sat', 'script', 'rpc',
-- 
2.7.4



More information about the CRIU mailing list