validate:launcher: Fix typo s/FILE_EXTENDION/FILE_EXTENSION/g

This commit is contained in:
Thibault Saunier 2015-02-19 11:32:05 +01:00
parent f3adc999f1
commit c5393f79f3
2 changed files with 5 additions and 5 deletions

View file

@ -660,7 +660,7 @@ not been tested and explicitely activated if you set use --wanted-tests ALL""")
fpath = os.path.join(path, root, f)
if os.path.isdir(fpath) or \
fpath.endswith(GstValidateMediaDescriptor.MEDIA_INFO_EXT) or\
fpath.endswith(ScenarioManager.FILE_EXTENDION):
fpath.endswith(ScenarioManager.FILE_EXTENSION):
continue
else:
self._discover_file(path2url(fpath), fpath)

View file

@ -1188,7 +1188,7 @@ class ScenarioManager(Loggable):
_instance = None
all_scenarios = []
FILE_EXTENDION = "scenario"
FILE_EXTENSION = "scenario"
GST_VALIDATE_COMMAND = "gst-validate-1.0"
if "win32" in sys.platform:
GST_VALIDATE_COMMAND += ".exe"
@ -1208,7 +1208,7 @@ class ScenarioManager(Loggable):
mfile_bname = os.path.basename(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))
if scenarios:
@ -1248,7 +1248,7 @@ class ScenarioManager(Loggable):
# The real name of the scenario is:
# filename.REALNAME.scenario
name = scenario_path.replace(mfile + ".", "").replace(
"." + self.FILE_EXTENDION, "")
"." + self.FILE_EXTENSION, "")
path = scenario_path
else:
name = section
@ -1263,7 +1263,7 @@ class ScenarioManager(Loggable):
return scenarios
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])
if scenarios: