Skip to content

extracted single job execution into SingleExecutor / improved testing / do not unconditionally apply colors to output - #4882

Merged
firewave merged 12 commits into
cppcheck-opensource:mainfrom
firewave:single
Apr 8, 2023
Merged

extracted single job execution into SingleExecutor / improved testing / do not unconditionally apply colors to output#4882
firewave merged 12 commits into
cppcheck-opensource:mainfrom
firewave:single

Conversation

@firewave

@firewavefirewave commented Mar 10, 2023

Copy link
Copy Markdown
Collaborator

This will allow us to use shared more code between the three different executors as well as making them all behave the same in follow-up patches.

@firewave
firewaveforce-pushed the single branch 2 times, most recently from f05b30d to ea912feCompareMarch 10, 2023 17:59
@firewave

Copy link
Copy Markdown
CollaboratorAuthor

The changes in the suppression tests only occur in the tests since they are using impossible settings. This also applies to other executor-related tests will be addressed in a later PR.

@firewave

Copy link
Copy Markdown
CollaboratorAuthor

Seems like I have to fix the color stuff first.

@firewave
firewave marked this pull request as draft March 10, 2023 18:07
@firewavefirewave changed the title extracted single job execution into SingleExecutor / improved testingextracted single job execution into SingleExecutor / improved testing / do not unconditionally apply colors to outputMar 10, 2023
@firewave

Copy link
Copy Markdown
CollaboratorAuthor

Writing the status through reportOut() no longer causes it to bypass the ErrorLogger in TestFixture instances so there's no more need for redirecting the output. That might have also bypassed the pipes which also isn't good.

Comment threadcli/executor.cpp Outdated
@firewave
firewave marked this pull request as ready for review March 10, 2023 21:43
@firewave
firewaveforce-pushed the single branch 2 times, most recently from 31f5fd7 to 46ceb33CompareMarch 12, 2023 14:33
@firewave

Copy link
Copy Markdown
CollaboratorAuthor

Anything left to do here?

Comment threadtest/testsuppressions.cpp
@firewave
firewave merged commit 1f2b491 into cppcheck-opensource:mainApr 8, 2023
@firewave
firewave deleted the single branch April 8, 2023 16:06
@firewave

Copy link
Copy Markdown
CollaboratorAuthor

I posted the (incomplete) follow-up as #4963.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@firewave@danmar