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 832a05289a
commit a7efc64f80

View file

@ -256,7 +256,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