-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Set default value of sourcesdir to 'src' only if such a directory exists, otherwise set to None
#1185
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
[feat] Set default value of sourcesdir to 'src' only if such a directory exists, otherwise set to None
#1185
Conversation
If the test is derived from RunOnlyRegressionTest, then it does not have to create a `src` dir in the test folder anymore. By default if there is no `src` dir, then ReFrame will set the `self.sourcesdir` to `None`.
teojgo
left a comment
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.
The unittests fail because the test._prefix is set after the initialization of the test in https://github.com/victorusu/reframe/blob/ba5470c41153495a2f343ac5dd3e3e6506e20c6a/unittests/test_pipeline.py#L195.
sourcesdir by default for RunOnlyRegressionTest
If an `src/` directory is found inside the test's prefix, this will be used, otherwise, `sourcesdir` will be set to `None`.
|
Hello @victorusu, Thank you for updating! Cheers! There are no PEP8 issues in this Pull Request!Do see the ReFrame Coding Style Guide Comment last updated at 2020-02-25 13:51:25 UTC |
sourcesdir by default for RunOnlyRegressionTestsourcesdir to 'src' only if such a directory exists, otherwise set to None
I took over the implementation, so somebody else must review.
|
@teojgo Please review this one. |
Codecov Report
@@ Coverage Diff @@
## master #1185 +/- ##
=========================================
Coverage ? 92.17%
=========================================
Files ? 81
Lines ? 12003
Branches ? 0
=========================================
Hits ? 11064
Misses ? 939
Partials ? 0
Continue to review full report at Codecov.
|
teojgo
left a comment
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.
lgtm now
|
@jenkins-cscs retry daint |
If the test is derived from RunOnlyRegressionTest, then it does not haveto create a
src/dir in the test folder anymore. By default, if there isno
src/dir, then ReFrame will set theself.sourcesdirtoNone.Close #1094