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:
Pedro Algarvio 2023-08-01 08:26:02 +01:00 committed by Megan Wilhite
parent 8534384a40
commit e646735f91

View file

@ -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():
"""