-
-
Save nigelbabu/23bc80108c0f633b483b1a1d024ddd98 to your computer and use it in GitHub Desktop.
Glusto skip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from glusto.core import Glusto as g | |
from glustolibs.gluster.gluster_base_class import GlusterBaseClass, runs_on | |
@runs_on([['distributed-replicated', 'replicated', 'distributed', | |
'dispersed', 'distributed-dispersed'], | |
['glusterfs', 'cifs', 'nfs']]) | |
class MySampleTest(GlusterBaseClass): | |
def my_test(self): | |
if g.config.get('test_env', 'upstream').lower() == 'upstream' and self.volume_type = 'cifs': | |
pytest.skip('SKIPPED. Bug #123456') | |
# do whatever | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's been awhile since I tested, but if a decorator on the class method has access to the class attributes created by runs_on at this point, would using the skip decorator(s) be cleaner?