Updated Branches: refs/heads/4.2 1e4bbf8a4 -> 2597dad20
CLOUDSTACK-5269: Fix nose failures. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2597dad2 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2597dad2 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2597dad2 Branch: refs/heads/4.2 Commit: 2597dad20af4620ac9338f24f1f9a262e8295dac Parents: 1e4bbf8 Author: Santhosh Edukulla <[email protected]> Authored: Mon Dec 9 19:36:10 2013 +0530 Committer: Girish Shilamkar <[email protected]> Committed: Mon Dec 9 19:42:14 2013 +0530 ---------------------------------------------------------------------- tools/marvin/marvin/marvinPlugin.py | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2597dad2/tools/marvin/marvin/marvinPlugin.py ---------------------------------------------------------------------- diff --git a/tools/marvin/marvin/marvinPlugin.py b/tools/marvin/marvin/marvinPlugin.py index 852b84a..f5b7a88 100644 --- a/tools/marvin/marvin/marvinPlugin.py +++ b/tools/marvin/marvin/marvinPlugin.py @@ -95,6 +95,17 @@ class MarvinPlugin(Plugin): return True return None + def wantFile(self, filename): + ''' + Only python files will be used as test modules + ''' + parts = filename.split(os.path.sep) + base, ext = os.path.splitext(parts[-1]) + if ext == '.py': + return True + else: + return False + def loadTestsFromTestCase(self, cls): if cls.__name__ != 'cloudstackTestCase': self.identifier = cls.__name__
