Skip to content

Commit

Permalink
#3408 show log in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 3, 2024
1 parent d3bcab6 commit 51cae99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mvn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
name: mvn
strategy:
matrix:
os: [ ubuntu-20.04, windows-2022, macos-12 ]
java: [ 11, 20 ]
os: [ ubuntu-24.04, windows-2022, macos-12 ]
java: [ 11, 21 ]
runs-on: ${{ matrix.os }}
env:
CONVERT_PATH: /tmp/antlr4-to-bnf-converter
Expand Down
13 changes: 5 additions & 8 deletions eo-runtime/src/test/java/org/eolang/PhiUnphiIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
package org.eolang;

import com.jcabi.log.Logger;
import com.yegor256.WeAreOnline;
import com.yegor256.farea.Farea;
import java.io.IOException;
Expand Down Expand Up @@ -238,14 +237,12 @@ void runsTestsAfterPhiAndUnphi(final @TempDir Path temp) throws IOException {
.set("withRuntimeDependency", PhiUnphiIT.FALSE)
.set("placeBinariesThatHaveSources", PhiUnphiIT.TRUE);
f.exec("clean", "test");
final String log = f.log();
final boolean success = log.contains("BUILD SUCCESS");
if (!success) {
Logger.info(this, log);
}
Assertions.assertTrue(
success,
"Some tests weren't passed after converting to phi and back"
f.log().contains("BUILD SUCCESS"),
String.format(
"Some tests weren't passed after converting to phi and back:\n%s",
f.log()
)
);
}
);
Expand Down

0 comments on commit 51cae99

Please sign in to comment.