Show sys.path on error

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-07-27 21:07:55 +01:00 committed by Megan Wilhite
parent 7e709b11dd
commit 8b6497da72

View file

@ -267,7 +267,8 @@ def pytest_configure(config):
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."
"the respository checkout instead of the onedir package.\n\n"
f" * sys.path: {sys.path}"
)
config._onedir_check_complete = True