mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +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 = []
|
||||
scenario_defs = os.path.join(self.config.main_dir, "scenarios.def")
|
||||
logs = open(os.path.join(self.config.logsdir, "scenarios_discovery.log"), 'w')
|
||||
try:
|
||||
command = [self.GST_VALIDATE_COMMAND, "--scenarios-defs-output-file", scenario_defs]
|
||||
command.extend(scenario_paths)
|
||||
subprocess.check_output(command)
|
||||
subprocess.check_call(command, stdout=logs, stderr=logs)
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in a new issue