mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

vharseko
22.30.2023 7bc10f9671b187cecc2be8f5c52f7b4a7272f9f0
opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java
@@ -1673,13 +1673,15 @@
    appendStreamContent(logsContents, TestCaseUtils.getSystemOutContents(), "System.out");
    appendStreamContent(logsContents, TestCaseUtils.getSystemErrContents(), "System.err");
    
    for (final File logFile : Arrays.asList(new File(paths.testInstanceRoot, "logs").listFiles())) {
       try {
         appendStreamContent(logsContents, readFile(logFile.getPath()), logFile.getPath());
      } catch (IOException e) {
         e.printStackTrace();
      }
   }
    if (new File(paths.testInstanceRoot, "logs").listFiles()!=null) {
       for (final File logFile : Arrays.asList(new File(paths.testInstanceRoot, "logs").listFiles())) {
          try {
            appendStreamContent(logsContents, readFile(logFile.getPath()), logFile.getPath());
         } catch (IOException e) {
            e.printStackTrace();
         }
      }
    }
  }
  private static void appendStreamContent(StringBuilder out, String content, String name)