validate: launcher: Fix printing of errors in final report

https://bugzilla.gnome.org/show_bug.cgi?id=736138
This commit is contained in:
Thibault Saunier 2014-09-17 17:32:52 +02:00 committed by Mathieu Duponchelle
parent 20633cec19
commit 94efe0df85

View file

@ -346,10 +346,10 @@ class GstValidateTest(Test):
errors = []
for l in open(self.validatelogs, 'r').readlines():
if "critical : " in l:
if ret != "[":
ret += ", "
error = l.split("critical : ")[1].replace("\n", '')
if error not in errors:
if ret != "[":
ret += ", "
ret += error
errors.append(error)