Browse Source

Revert "Issue 51017 - Implement dynamic ds/bz pytest markers"

Apparently, in some situations, grepping over all the files gets very
slow due to filesystem implementation (e.g. docker on MacOS) specifics.

Instead of this implementation, we'll rather look into pre-commit hooks
adding new markings on the fly.

This reverts commit 6a7a154159583c09fcbba0578eaf576d577ccb11.

Relates: https://pagure.io/389-ds-base/issue/51017
Matus Honek 5 years ago
parent
commit
b3dec427f1
1 changed files with 0 additions and 11 deletions
  1. 0 11
      dirsrvtests/conftest.py

+ 0 - 11
dirsrvtests/conftest.py

@@ -12,17 +12,6 @@ from enum import Enum
 pkgs = ['389-ds-base', 'nss', 'nspr', 'openldap', 'cyrus-sasl']
 p = Paths()
 
-
-def pytest_configure(config):
-    """Auto add custom markers we use to reference upstream/bugzilla tickets."""
-    prefix = '@pytest.mark.'
-    cmd = ['grep', '-rh', f'^{prefix}\\(ds\\|bz\\)[0-9]\\+']
-    p = subprocess.run(cmd, check=True, stdout=subprocess.PIPE)
-    markers = {x[len(prefix):] for x in p.stdout.decode().splitlines()}
-    for m in markers:
-        config.addinivalue_line('markers', m)
-
-
 class FIPSState(Enum):
     ENABLED = 'enabled'
     DISABLED = 'disabled'