This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new fff78111437 (chores) ci: added support for archiving the test log if 
it exists
fff78111437 is described below

commit fff781114371b20719d5a2a51cb097b382441cd6
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Fri Apr 22 10:17:58 2022 +0200

    (chores) ci: added support for archiving the test log if it exists
---
 .github/actions/quick-test/quick-test.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.github/actions/quick-test/quick-test.sh 
b/.github/actions/quick-test/quick-test.sh
index df9957a3082..182f8aedd28 100755
--- a/.github/actions/quick-test/quick-test.sh
+++ b/.github/actions/quick-test/quick-test.sh
@@ -67,6 +67,14 @@ function runTest() {
   else
     notifySuccess "${component}" "${total}" "${current}" "${failures}"
   fi
+
+  local testLog="target/${component}-test.log"
+  if [[ -f "$testLog" ]] ; then
+    echo "Copying test log file at ${testLog} to the log directory"
+    mv "${testLog}" "${logDir}"/
+  else
+    echo "There is no log file to copy at ${testLog}"
+  fi
 }
 
 function componentTest() {

Reply via email to