s3-build: Don't paste the summary.
authorAndreas Schneider <asn@samba.org>
Thu, 26 Aug 2010 09:41:05 +0000 (11:41 +0200)
committerAndreas Schneider <asn@samba.org>
Thu, 26 Aug 2010 11:42:08 +0000 (13:42 +0200)
The buildfarm outputs the summary if it is available and use the exit
status of the filter or subunit formatter as exit code.

selftest/s3-selftest.sh

index 8b44629bc3c064ae2f58360e34b82ade6d95fe69..2087b51af6ecd3ee3dda8e712c51bc1841bebf63 100755 (executable)
@@ -25,9 +25,9 @@ if [ "x${RUN_FROM_BUILD_FARM}" = "xyes" ]; then
                        --socket-wrapper ${TESTS} \
        && touch ${SELFTESTPREFIX}/st_done ) | \
                ${FILTER_XFAIL} --strip-passed-output
+       EXIT_STATUS=$?
 
        st_test_done
-       test -f ${SELFTESTPREFIX}/summary && cat ${SELFTESTPREFIX}/summary
 else
        ( rm -f ${SELFTESTPREFIX}/st_done && \
                ${PERL} ${SELFTESTDIR}/selftest.pl \
@@ -37,8 +37,9 @@ else
                        --socket-wrapper ${TESTS} \
        && touch ${SELFTESTPREFIX}/st_done ) | \
                ${SUBUNIT_FORMATTER}
+       EXIT_STATUS=$?
 
        st_test_done
 fi
 
-cleanup_and_exit
+cleanup_and_exit ${EXIT_STATUS}