validate:launcher: Fix typo s/FILE_EXTENDION/FILE_EXTENSION/g
authorThibault Saunier <tsaunier@gnome.org>
Thu, 19 Feb 2015 10:32:05 +0000 (11:32 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 19 Feb 2015 12:57:30 +0000 (13:57 +0100)
validate/launcher/apps/gstvalidate.py
validate/launcher/baseclasses.py

index cf2559c..ee48a53 100644 (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)
index 5547125..56a016c 100644 (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: