mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
validate: Keep scenario discovering logs in a file
This commit is contained in:
parent
7590148e20
commit
8a295da795
1 changed files with 2 additions and 1 deletions
|
@ -735,10 +735,11 @@ class ScenarioManager(Loggable):
|
||||||
"""
|
"""
|
||||||
scenarios = []
|
scenarios = []
|
||||||
scenario_defs = os.path.join(self.config.main_dir, "scenarios.def")
|
scenario_defs = os.path.join(self.config.main_dir, "scenarios.def")
|
||||||
|
logs = open(os.path.join(self.config.logsdir, "scenarios_discovery.log"), 'w')
|
||||||
try:
|
try:
|
||||||
command = [self.GST_VALIDATE_COMMAND, "--scenarios-defs-output-file", scenario_defs]
|
command = [self.GST_VALIDATE_COMMAND, "--scenarios-defs-output-file", scenario_defs]
|
||||||
command.extend(scenario_paths)
|
command.extend(scenario_paths)
|
||||||
subprocess.check_output(command)
|
subprocess.check_call(command, stdout=logs, stderr=logs)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue