Make -Dtests.output=always actually work. (#648)

Signed-off-by: dblock <dblock@amazon.com>
This commit is contained in:
Daniel Doubrovkine (dB.) 2021-05-04 19:45:04 -04:00 committed by GitHub
parent 67460c7804
commit d9cb7daa65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -219,7 +219,7 @@ Print all the logging output from the test runs to the commandline
even if tests are passing. even if tests are passing.
------------------------------ ------------------------------
./gradlew test -Dtests.output=always ./gradlew test -Dtests.output=true
------------------------------ ------------------------------
Configure the heap size. Configure the heap size.

View File

@ -198,6 +198,7 @@ public class OpenSearchTestBasePlugin implements Plugin<Project> {
logging.setShowExceptions(true); logging.setShowExceptions(true);
logging.setShowCauses(true); logging.setShowCauses(true);
logging.setExceptionFormat("full"); logging.setExceptionFormat("full");
logging.setShowStandardStreams(Util.getBooleanProperty("tests.output", false));
}); });
if (OS.current().equals(OS.WINDOWS) && System.getProperty("tests.timeoutSuite") == null) { if (OS.current().equals(OS.WINDOWS) && System.getProperty("tests.timeoutSuite") == null) {