Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make --fix-deprecated-easyconfigs a bit less strict #2898

Merged
merged 1 commit into from May 23, 2019

Conversation

boegel
Copy link
Member

@boegel boegel commented May 22, 2019

Some existing easyconfigs don't have name and version in that order in the toolchain spec, so we need to be a bit more flexible in --fix-deprecated-easyconfigs (cfr. easybuilders/easybuild-easyconfigs#8369).

@boegel boegel added the bug fix label May 22, 2019
@boegel boegel added this to the 4.0 milestone May 22, 2019
@boegel boegel requested a review from bartoldeman May 22, 2019 19:34

test_ec_txt = read_file(test_ec)
regex = re.compile("^toolchain = {'name': 'dummy', .*$", re.M)
regex = re.compile("^toolchain = {.*'name': 'dummy'.*$", re.M)
self.assertTrue(regex.search(test_ec_txt), "Pattern '%s' found in: %s" % (regex.pattern, test_ec_txt))
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I understand this test? What exactly is being tested here?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a sanity check for the test itself, it checks whether the test easyconfig file really uses a dummy toolchain.

Copy link
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

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

LGTM

@akesandgren
Copy link
Contributor

Going in, thanks @boegel!

@akesandgren akesandgren merged commit 06e3126 into easybuilders:4.x May 23, 2019
@boegel boegel deleted the more_flexible_fix_depr branch May 23, 2019 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants