mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Define salt_factories_default_root_dir
to try and avoid SELinux error on Fedora 38
``` Internal Server Error ("error setting label on mount source '/tmp': SELinux relabeling of /tmp is not allowed") ``` Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
8534384a40
commit
e646735f91
1 changed files with 16 additions and 0 deletions
|
@ -853,6 +853,22 @@ def groups_collection_modifyitems(config, items):
|
|||
|
||||
|
||||
# ----- Fixtures Overrides ------------------------------------------------------------------------------------------>
|
||||
@pytest.fixture(scope="session")
|
||||
def salt_factories_default_root_dir(salt_factories_default_root_dir):
|
||||
"""
|
||||
The root directory from where to base all salt-factories paths.
|
||||
|
||||
For example, in a salt system installation, this would be ``/``.
|
||||
|
||||
.. admonition:: Attention
|
||||
|
||||
If `root_dir` is returned on the `salt_factories_config()` fixture
|
||||
dictionary, then that's the value used, and not the one returned by
|
||||
this fixture.
|
||||
"""
|
||||
return salt_factories_default_root_dir / "stsuite"
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def salt_factories_config():
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue