Skip to content

Commit

Permalink
Update cli/src/test/java/com/devonfw/tools/ide/context/ProcessContext…
Browse files Browse the repository at this point in the history
…TestImpl.java

Co-authored-by: Jörg Hohwiller <[email protected]>
  • Loading branch information
jan-vcapgemini and hohwille authored Oct 30, 2024
1 parent 7f65aee commit c39829e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public ProcessContextTestImpl(IdeContext context) {
public ProcessResult run(ProcessMode processMode) {
ProcessResult result = super.run(ProcessMode.DEFAULT_CAPTURE);
// this hack is still required to capture test script output
if (processMode == ProcessMode.DEFAULT || processMode == ProcessMode.BACKGROUND) {
if (result.isSuccessful() && (processMode == ProcessMode.DEFAULT || processMode == ProcessMode.BACKGROUND)) {
result.log(IdeLogLevel.INFO, context);
}
return result;
Expand Down

0 comments on commit c39829e

Please sign in to comment.