-
Notifications
You must be signed in to change notification settings - Fork 203
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
avoid error being logged when checksums.json is not found #4261
avoid error being logged when checksums.json is not found #4261
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PetrKralCZ As discussed:
- should enhance
test_obtain_file
intest/framework/easyblock.py
to also test use ofwarning_only
option;- to run only that specific test, use:
python3 -O -m test.framework.easyblock obtain_file
- to run only that specific test, use:
- should enhance
test_checksum_step
to verify that log error doesn't happen anymore if there's nochecksums.json
file;
[None]
… checksums.json is not found
[None]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to go now that a test that catches the issue is in place
# make sure there's no error logged for not finding checksums.json, | ||
# see also https://github.com/easybuilders/easybuild-framework/issues/4301 | ||
regex = re.compile("ERROR .*Couldn't find file checksums.json anywhere", re.M) | ||
regex.search(stdout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@boegel did you miss to remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yes, that's not supposed to be there anymore...
Cleaning that up in #4345
(created using
eb --new-pr
)edit: fixes #4301