Commit 0e891b3b authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm.py: Force per-test logs if report is requested

Otherwise non-parallel jenkins jobs miss the error logs in e-mails
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 0f6e2a66
......@@ -955,6 +955,12 @@ class launcher:
self.__max = int(opts['parallel'] or 1)
self.__subs = {}
self.__fail = False
if self.__max > 1 and self.__total > 1:
self.__use_log = True
elif opts['report']:
self.__use_log = True
else:
self.__use_log = False
def __show_progress(self):
perc = self.__nr * 16 / self.__total
......@@ -980,7 +986,7 @@ class launcher:
'dedup', 'sbs', 'freezecg', 'user')
arg = repr((name, desc, flavor, { d: self.__opts[d] for d in nd }))
if self.__max > 1 and self.__total > 1:
if self.__use_log:
logf = name.replace('/', '_') + ".log"
log = open(logf, "w")
else:
......
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