-
-
Notifications
You must be signed in to change notification settings - Fork 717
fix(script): clear output when exec-if fails #2675
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
fix(script): clear output when exec-if fails #2675
Conversation
Codecov Report
@@ Coverage Diff @@
## hotfix/3.6.3 #2675 +/- ##
================================================
- Coverage 13.77% 13.77% -0.01%
================================================
Files 153 153
Lines 11282 11284 +2
================================================
Hits 1554 1554
- Misses 9728 9730 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Thanks 😃
I'm going to retarget the PR to the hotfix/3.6.3
branch so that we can get it into the next hotfix release.
Please also add a changelog entry for this fix.
src/adapters/script_runner.cpp
Outdated
@@ -47,6 +47,7 @@ script_runner::interval script_runner::process() { | |||
|
|||
void script_runner::clear_output() { | |||
set_output(""); | |||
m_on_update(m_data); |
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 should only update if set_output
return true
.
54873e0
to
b489d5e
Compare
Oh, I saw that you tried to retarget the PR at the same time ^^ |
5b70ce4
to
f656b3c
Compare
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.
Looks good!
Thanks for the quick fix ;)
What type of PR is this? (check all applicable)
Description
Fixes the issue when output is not cleared after
exec-if
failed.Related Issues & Documents
Closes #2674
Documentation (check all applicable)