validate:launcher: Use GST_VALIDATE_SCENARIO envvar to set scenarios

Summary:
Instead of concidering all apps will have a --set-scenario argument
which is not going to be the case as soon as we run the tests through
LD_PRELOAD

Reviewers: Mathieu_Du

Differential Revision: http://phabricator.freedesktop.org/D70
This commit is contained in:
Thibault Saunier 2015-02-27 13:18:04 +00:00 committed by Thibault Saunier
parent 2fe03f1993
commit bbd04eef4c

View file

@ -462,8 +462,12 @@ class GstValidateTest(Test):
self.add_env_variable("GST_VALIDATE_SCENARIOS_PATH",
os.environ["GST_VALIDATE_SCENARIOS_PATH"])
if self.scenario is not None:
self.add_arguments("--set-scenario",
self.scenario.get_execution_name())
os.environ["GST_VALIDATE_SCENARIO"] = self.scenario.get_execution_name()
self.add_env_variable("GST_VALIDATE_SCENARIO",
os.environ["GST_VALIDATE_SCENARIO"])
if "LD_PRELOAD" in os.environ:
self.add_env_variable("LD_PRELOAD", os.environ["LD_PRELOAD"])
def get_extra_log_content(self, extralog):
value = Test.get_extra_log_content(self, extralog)