From 5cbda8b64a127090a255fdfdf188b84e5ed53c74 Mon Sep 17 00:00:00 2001 From: Santhosh Edukulla Date: Mon, 9 Dec 2013 19:36:10 +0530 Subject: [PATCH] CLOUDSTACK-5269: Fix nose failures. --- tools/marvin/marvin/marvinPlugin.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/marvin/marvin/marvinPlugin.py b/tools/marvin/marvin/marvinPlugin.py index 852b84af7d7..f5b7a8877b9 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__