mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Revert "Allow running unit/functional tests against the salt checkout for now"
This reverts commit 7382aa187e
.
This commit is contained in:
parent
cbcbe14d47
commit
e8d0e6a821
1 changed files with 12 additions and 12 deletions
|
@ -247,18 +247,18 @@ def pytest_configure(config):
|
|||
called after command line options have been parsed
|
||||
and all plugins and initial conftest files been loaded.
|
||||
"""
|
||||
# try:
|
||||
# assert config._onedir_check_complete
|
||||
# return
|
||||
# except AttributeError:
|
||||
# if os.environ.get("ONEDIR_TESTRUN", "0") == "1":
|
||||
# if pathlib.Path(salt.__file__).parent == CODE_DIR / "salt":
|
||||
# raise pytest.UsageError(
|
||||
# "Apparently running the test suite against the onedir build "
|
||||
# "of salt, however, the imported salt package is pointing to "
|
||||
# "the respository checkout instead of the onedir package."
|
||||
# )
|
||||
# config._onedir_check_complete = True
|
||||
try:
|
||||
assert config._onedir_check_complete
|
||||
return
|
||||
except AttributeError:
|
||||
if os.environ.get("ONEDIR_TESTRUN", "0") == "1":
|
||||
if pathlib.Path(salt.__file__).parent == CODE_DIR / "salt":
|
||||
raise pytest.UsageError(
|
||||
"Apparently running the test suite against the onedir build "
|
||||
"of salt, however, the imported salt package is pointing to "
|
||||
"the respository checkout instead of the onedir package."
|
||||
)
|
||||
config._onedir_check_complete = True
|
||||
|
||||
for dirname in CODE_DIR.iterdir():
|
||||
if not dirname.is_dir():
|
||||
|
|
Loading…
Add table
Reference in a new issue