Skip to content

Conversation

@ReimarBauer
Copy link
Member

Purpose of PR?:

Fixes #2958

@ReimarBauer ReimarBauer marked this pull request as draft January 17, 2026 08:48
@ReimarBauer
Copy link
Member Author

This needs first the merge stable to develop

# REGEX = re.compile(r'(\/.*)|([A-Z]:\\.*)')
# (mss)
REGEX = re.compile(r'(~\/.*)|(\/.*)|([A-Z]:\\.*)')

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without this change the used value gets ignored and the default is then used

# in conftest we set always the mss_dir in the config file
# in fixtures we set the mss_dir in the config file
mss_dir = config_loader(dataset="mss_dir")
assert "~" not in mss_dir
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

safety check, that the value was changed


@pytest.fixture
def msui_configs(tmp_path):
os.environ['MSUI_SETTINGS'] = os.path.join(tmp_path, "msui_settings.json")
Copy link
Member Author

@ReimarBauer ReimarBauer Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msui imports from here

https://github.com/Open-MSS/MSS/blob/develop/mslib/msui/constants.py#L43

The environment variable adds (un?)necessary complexity and could be overlooked.

@ReimarBauer ReimarBauer marked this pull request as ready for review January 21, 2026 08:07
@ReimarBauer ReimarBauer requested a review from matrss January 21, 2026 08:07
@ReimarBauer
Copy link
Member Author

@matrss
Ubuntu is experiencing recurring failures, which will likely result in an xfail on #2957 or the change supports finding the problem.
The macOS tests don't appear to be having any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

we need to change the fixture to have a tmp_path for mss_dir

2 participants