mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
validate:launcher: Avoid seeking in output files to parse them
Tihs creates issue and missing content.
This commit is contained in:
parent
32d9d5dc44
commit
d377158b42
1 changed files with 3 additions and 5 deletions
|
@ -228,10 +228,9 @@ class GstValidateTest(Test):
|
|||
self.add_arguments("--set-scenario", self.scenario.name)
|
||||
|
||||
def get_validate_criticals_errors(self):
|
||||
self.reporter.out.seek(0)
|
||||
ret = "["
|
||||
errors = []
|
||||
for l in self.reporter.out.readlines():
|
||||
for l in open(self.logfile, 'r').readlines():
|
||||
if "critical : " in l:
|
||||
if ret != "[":
|
||||
ret += ", "
|
||||
|
@ -287,9 +286,8 @@ class GstValidateTest(Test):
|
|||
position = duration = -1
|
||||
|
||||
self.debug("Getting position")
|
||||
self.reporter.out.seek(0)
|
||||
m = None
|
||||
for l in reversed(self.reporter.out.readlines()):
|
||||
for l in reversed(open(self.logfile, 'r').readlines()):
|
||||
l = l.lower()
|
||||
if "<position:" in l or "buffering" in l:
|
||||
m = l
|
||||
|
@ -314,7 +312,7 @@ class GstValidateTest(Test):
|
|||
m = None
|
||||
rate = start = stop = None
|
||||
|
||||
for l in reversed(self.reporter.out.readlines()):
|
||||
for l in reversed(open(self.logfile, 'r').readlines()):
|
||||
l = l.lower()
|
||||
if "seeking to: " in l:
|
||||
m = l
|
||||
|
|
Loading…
Reference in a new issue