From 53fd80a2da59520391e738634f7191e3973a427e Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 1 Dec 2017 18:03:40 +0100 Subject: [PATCH] slapdtest: Use "CI" instead of "Travis" in function name We want this to work on any kind of CI, not just the one we use now. --- Lib/slapdtest/_slapdtest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/slapdtest/_slapdtest.py b/Lib/slapdtest/_slapdtest.py index 884a1ee..2900581 100644 --- a/Lib/slapdtest/_slapdtest.py +++ b/Lib/slapdtest/_slapdtest.py @@ -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): @@ -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" )