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

vinodkone pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new aee2e7e  Manually copy test reports to host fs.
aee2e7e is described below

commit aee2e7e761b2bf564bce0dc1971aadd2b68e3224
Author: Vinod Kone <vinodk...@gmail.com>
AuthorDate: Fri Nov 16 13:26:12 2018 -0600

    Manually copy test reports to host fs.
    
    Review: https://reviews.apache.org/r/69513
---
 support/mesos-build/entrypoint.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/support/mesos-build/entrypoint.sh 
b/support/mesos-build/entrypoint.sh
index ec98cc8..865c44a 100755
--- a/support/mesos-build/entrypoint.sh
+++ b/support/mesos-build/entrypoint.sh
@@ -26,7 +26,18 @@ git clone --depth 1 file:///SRC "${SRCDIR}"
 
 cd "${SRCDIR}"
 
-export GTEST_OUTPUT=xml:report.xml
+# NOTE: We have googletest write test reports into container fs and manually
+# copy out to host fs because we have seen some strange behavior in CI where
+# gooletest writing directly into mounted host directory sometimes fails (with
+# no proper error message).
+function copy_out_test_reports {
+ find ${SRCDIR} -name \*-tests.xml -exec cp {} /SRC \;
+}
+
+trap copy_out_test_reports EXIT
+
+export GTEST_OUTPUT=xml:${SRCDIR}/
+
 export DISTCHECK_CONFIGURE_FLAGS=${CONFIGURATION}
 export ${ENVIRONMENT}
 

Reply via email to