CLOUDSTACK-5269: Fix nose failures.

This commit is contained in:
Santhosh Edukulla 2013-12-09 19:36:10 +05:30 committed by Girish Shilamkar
parent a2e4fdbd5a
commit 5cbda8b64a

View File

@ -95,6 +95,17 @@ class MarvinPlugin(Plugin):
return True return True
return None 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): def loadTestsFromTestCase(self, cls):
if cls.__name__ != 'cloudstackTestCase': if cls.__name__ != 'cloudstackTestCase':
self.identifier = cls.__name__ self.identifier = cls.__name__