Skip to content

Commit

Permalink
Fixing logging errors in the BuildCacheRelocationTests test
Browse files Browse the repository at this point in the history
To display the build log, there is a need to catch an exception and add an output to the message.

PR #479
  • Loading branch information
shanshin authored Oct 11, 2023
1 parent ca040f1 commit 2547f52
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class BuildCacheRelocationTests {
assertEquals("SUCCESS", result1.taskOutcome(":koverHtmlReport"))
assertEquals("SUCCESS", result1.taskOutcome(":koverBinaryReport"))
assertEquals("SUCCESS", result1.taskOutcome(":koverVerify"))
} catch (e: Exception) {
} catch (e: Throwable) {
throw AssertionError("Build log \n${result1.output}",e)
}

Expand All @@ -58,7 +58,7 @@ class BuildCacheRelocationTests {
assertEquals("FROM-CACHE", result2.taskOutcome(":koverHtmlReport"))
assertEquals("FROM-CACHE", result2.taskOutcome(":koverBinaryReport"))
assertEquals("FROM-CACHE", result2.taskOutcome(":koverVerify"))
} catch (e: Exception) {
} catch (e: Throwable) {
throw AssertionError("Build log \n${result2.output}",e)
}

Expand Down

0 comments on commit 2547f52

Please sign in to comment.