[CRIU] [PATCH] zdtm: handle errors of make

Andrei Vagin avagin at virtuozzo.com
Tue Jul 3 02:52:14 MSK 2018


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

diff --git a/test/zdtm.py b/test/zdtm.py
index c795490ae..c0a1b4278 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -358,6 +358,9 @@ class test_fail_exc(Exception):
 	def __init__(self, step):
 		self.step = step
 
+	def __str__(self):
+		return str(self.step)
+
 
 class test_fail_expected_exc(Exception):
 	def __init__(self, cr_action):
@@ -397,7 +400,8 @@ class zdtm_test:
 				preexec_fn = self.__freezer and self.__freezer.attach or None)
 		if act == "pid":
 			try_run_hook(self, ["--post-start"])
-		s.wait()
+		if s.wait():
+			raise test_fail_exc(str(s_args))
 
 		if self.__freezer:
 			self.__freezer.freeze()
-- 
2.14.3



More information about the CRIU mailing list