mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
CLOUDSTACK-5269: Fix nose failures.
This commit is contained in:
parent
a2e4fdbd5a
commit
5cbda8b64a
@ -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__
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user