Commit d6ec8347 authored by Andrei Vagin's avatar Andrei Vagin Committed by Andrei Vagin

zdtm: handle errors of make

Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent b58eed2a
......@@ -354,6 +354,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):
......@@ -393,7 +396,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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment