Skip to content

Commit

Permalink
slapdtest: Use "CI" instead of "Travis" in function name
Browse files Browse the repository at this point in the history
We want this to work on any kind of CI, not just the one we use now.
  • Loading branch information
Petr Viktorin committed Dec 4, 2017
1 parent 289ba45 commit 53fd80a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/slapdtest/_slapdtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def identity(test_item):
return test_item


def skip_unless_travis(reason):
def skip_unless_ci(reason):
"""Skip test unless test case is executed on CI like Travis CI
"""
if os.environ.get('CI', False):
Expand All @@ -81,9 +81,9 @@ def requires_tls(skip_nss=False):
:param skip_nss: Skip test when libldap is compiled with NSS as TLS lib
"""
if not ldap.TLS_AVAIL:
return skip_unless_travis("test needs ldap.TLS_AVAIL")
return skip_unless_ci("test needs ldap.TLS_AVAIL")
elif skip_nss and ldap.get_option(ldap.OPT_X_TLS_PACKAGE) == 'MozNSS':
return skip_unless_travis(
return skip_unless_ci(
"Test doesn't work correctly with Mozilla NSS, see "
"https://bugzilla.redhat.com/show_bug.cgi?id=1519167"
)
Expand Down

0 comments on commit 53fd80a

Please sign in to comment.