mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
validate:launcher: Fix typo s/FILE_EXTENDION/FILE_EXTENSION/g
This commit is contained in:
parent
f3adc999f1
commit
c5393f79f3
2 changed files with 5 additions and 5 deletions
|
@ -660,7 +660,7 @@ not been tested and explicitely activated if you set use --wanted-tests ALL""")
|
||||||
fpath = os.path.join(path, root, f)
|
fpath = os.path.join(path, root, f)
|
||||||
if os.path.isdir(fpath) or \
|
if os.path.isdir(fpath) or \
|
||||||
fpath.endswith(GstValidateMediaDescriptor.MEDIA_INFO_EXT) or\
|
fpath.endswith(GstValidateMediaDescriptor.MEDIA_INFO_EXT) or\
|
||||||
fpath.endswith(ScenarioManager.FILE_EXTENDION):
|
fpath.endswith(ScenarioManager.FILE_EXTENSION):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
self._discover_file(path2url(fpath), fpath)
|
self._discover_file(path2url(fpath), fpath)
|
||||||
|
|
|
@ -1188,7 +1188,7 @@ class ScenarioManager(Loggable):
|
||||||
_instance = None
|
_instance = None
|
||||||
all_scenarios = []
|
all_scenarios = []
|
||||||
|
|
||||||
FILE_EXTENDION = "scenario"
|
FILE_EXTENSION = "scenario"
|
||||||
GST_VALIDATE_COMMAND = "gst-validate-1.0"
|
GST_VALIDATE_COMMAND = "gst-validate-1.0"
|
||||||
if "win32" in sys.platform:
|
if "win32" in sys.platform:
|
||||||
GST_VALIDATE_COMMAND += ".exe"
|
GST_VALIDATE_COMMAND += ".exe"
|
||||||
|
@ -1208,7 +1208,7 @@ class ScenarioManager(Loggable):
|
||||||
mfile_bname = os.path.basename(mfile)
|
mfile_bname = os.path.basename(mfile)
|
||||||
|
|
||||||
for f in os.listdir(os.path.dirname(mfile)):
|
for f in os.listdir(os.path.dirname(mfile)):
|
||||||
if re.findall("%s\..*\.%s$" % (mfile_bname, self.FILE_EXTENDION), f):
|
if re.findall("%s\..*\.%s$" % (mfile_bname, self.FILE_EXTENSION), f):
|
||||||
scenarios.append(os.path.join(os.path.dirname(mfile), f))
|
scenarios.append(os.path.join(os.path.dirname(mfile), f))
|
||||||
|
|
||||||
if scenarios:
|
if scenarios:
|
||||||
|
@ -1248,7 +1248,7 @@ class ScenarioManager(Loggable):
|
||||||
# The real name of the scenario is:
|
# The real name of the scenario is:
|
||||||
# filename.REALNAME.scenario
|
# filename.REALNAME.scenario
|
||||||
name = scenario_path.replace(mfile + ".", "").replace(
|
name = scenario_path.replace(mfile + ".", "").replace(
|
||||||
"." + self.FILE_EXTENDION, "")
|
"." + self.FILE_EXTENSION, "")
|
||||||
path = scenario_path
|
path = scenario_path
|
||||||
else:
|
else:
|
||||||
name = section
|
name = section
|
||||||
|
@ -1263,7 +1263,7 @@ class ScenarioManager(Loggable):
|
||||||
return scenarios
|
return scenarios
|
||||||
|
|
||||||
def get_scenario(self, name):
|
def get_scenario(self, name):
|
||||||
if name is not None and os.path.isabs(name) and name.endswith(self.FILE_EXTENDION):
|
if name is not None and os.path.isabs(name) and name.endswith(self.FILE_EXTENSION):
|
||||||
scenarios = self.discover_scenarios([name])
|
scenarios = self.discover_scenarios([name])
|
||||||
|
|
||||||
if scenarios:
|
if scenarios:
|
||||||
|
|
Loading…
Reference in a new issue