From 47777e204966c37f7a92535e699464c71ea184b2 Mon Sep 17 00:00:00 2001 From: Usman Saleem Date: Tue, 25 Aug 2020 15:15:11 +1000 Subject: [PATCH] Update acceptance tests build arguments to capture JVM crash logs (#1327) Update acceptance tests build arguments to capture JVM crash logs in CircleCI Signed-off-by: Usman Saleem --- .circleci/config.yml | 3 +-- acceptance-tests/tests/build.gradle | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d30ff86da2..f539328c70 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -63,8 +63,7 @@ commands: path: acceptance-tests/tests/build/acceptanceTestLogs destination: acceptance-tests-logs - store_artifacts: - path: /home/circleci/project/acceptance-tests/tests/hs_err_pid* - destination: acceptance-tests-logs + path: acceptance-tests/tests/build/jvmErrorLogs jobs: assemble: diff --git a/acceptance-tests/tests/build.gradle b/acceptance-tests/tests/build.gradle index 5929b2596c..f71267817b 100644 --- a/acceptance-tests/tests/build.gradle +++ b/acceptance-tests/tests/build.gradle @@ -66,6 +66,8 @@ task acceptanceTest(type: Test) { description = 'Runs Besu acceptance tests.' group = 'verification' + jvmArgs "-XX:ErrorFile=${buildDir}/jvmErrorLogs/java_err_pid%p.log" + testLogging { exceptionFormat = 'full' showStackTraces = true @@ -73,4 +75,8 @@ task acceptanceTest(type: Test) { showExceptions = true showCauses = true } + + doFirst { + mkdir "${buildDir}/jvmErrorLogs" + } }