From 64e81464a9f09de2c90b9e1b76cf414a953a7a56 Mon Sep 17 00:00:00 2001 From: "Staeck, Philipp" Date: Thu, 7 Mar 2024 11:28:02 +0100 Subject: [PATCH] SDCCC-1233 adapt logs accordingly --- .../com/draeger/medical/sdccc/TestSuite.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/sdccc/src/main/java/com/draeger/medical/sdccc/TestSuite.java b/sdccc/src/main/java/com/draeger/medical/sdccc/TestSuite.java index 7ebaaf12..a81cd8f6 100644 --- a/sdccc/src/main/java/com/draeger/medical/sdccc/TestSuite.java +++ b/sdccc/src/main/java/com/draeger/medical/sdccc/TestSuite.java @@ -576,17 +576,21 @@ private static void printVerdict(final long numberOfTestFailures, final File tes } if (numberOfTestFailures == 0) { - LOG.info( - "Test run with {} Tests was completed successfully. No problems were found.", - testRunObserver.getTotalNumberOfTestsRun()); + if (testRunObserver.isInvalid()) { + LOG.info( + "Test run with {} Tests was completed successfully but other problems were found. Please consult the logfiles in {} for further information.", + testRunObserver.getTotalNumberOfTestsRun(), + testRunDir); + LOG.info("Test run was invalid."); + } else { + LOG.info( + "Test run with {} Tests was completed successfully. No problems were found.", + testRunObserver.getTotalNumberOfTestsRun()); + LOG.info("Test run was valid."); + } } else { LOG.info("Test run found problems. Please consult the logfiles in {} for further information.", testRunDir); - } - - if (testRunObserver.isInvalid()) { LOG.info("Test run was invalid."); - } else { - LOG.info("Test run was valid."); } }