-
Notifications
You must be signed in to change notification settings - Fork 117
[bugfix] Execute setup hooks for CompileOnlyRegressionTest and make the run hooks for the RunOnlyRegressionTest execute at the right place
#1163
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
Conversation
|
@jenkins-cscs retry tsa |
vkarak
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.
We will need a unit test and a fix for the run() of the run only tests. But this is not blocking us for the moment, so we can push it to the next sprint.
Codecov Report
@@ Coverage Diff @@
## master #1163 +/- ##
==========================================
- Coverage 92.17% 92.15% -0.02%
==========================================
Files 81 81
Lines 12001 12074 +73
==========================================
+ Hits 11062 11127 +65
- Misses 939 947 +8
Continue to review full report at Codecov.
|
vkarak
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.
I think that the unit test for the run-only tests case would pass even before the fix. The post_run is just commands to be inserted in the generated script. So, for sure, greetings.txt is going to be present in the stage directory regardless. The correct way to test is perhaps by manipulating the sourcesdir. You could set sourcesdir to None before run and then make sure that nothing was copied to the stage directory. Without the fix, this would fail, because it would run the hook after the copy to the stage directory.
CompileOnlyRegressionTest and execute the run hooks for the RunOnlyRegressionTest at the right place
CompileOnlyRegressionTest and execute the run hooks for the RunOnlyRegressionTest at the right placeCompileOnlyRegressionTest and make the run hooks for the RunOnlyRegressionTest execute at the right place
|
Hello @ekouts, 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-03-10 10:03:24 UTC |
vkarak
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
Fix CompileOnlyRegressionTest setup hooks.
pre_runhook inRunOnlyRegressionTestis not called exactly before therunbut only because there is a call to the base class function.runinCompileOnlyRegressionTest. With the current implementation they won't be called.Fixes issue #1162.