validate: Keep scenario discovering logs in a file

This commit is contained in:
Thibault Saunier 2014-05-07 12:21:30 +02:00
parent 7590148e20
commit 8a295da795

View file

@ -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