[asterisk-commits] mjordan: testsuite/bamboo/trunk r3138 - /bamboo/trunk/bin/build-libpri.sh

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 23 16:07:28 CDT 2012


Author: mjordan
Date: Fri Mar 23 16:07:24 2012
New Revision: 3138

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3138
Log:
Add errors and rose logs to artifacts

Modified:
    bamboo/trunk/bin/build-libpri.sh

Modified: bamboo/trunk/bin/build-libpri.sh
URL: http://svnview.digium.com/svn/testsuite/bamboo/trunk/bin/build-libpri.sh?view=diff&rev=3138&r1=3137&r2=3138
==============================================================================
--- bamboo/trunk/bin/build-libpri.sh (original)
+++ bamboo/trunk/bin/build-libpri.sh Fri Mar 23 16:07:24 2012
@@ -42,15 +42,18 @@
 # Run the ROSE encode/decode unit tests.
 ./rosetest > rosetest_results.txt 2> errors.txt
 
+mkdir logs
+cp rosetest_results.txt logs/
+
 # Report results
 cat errors.txt | grep -v "libpri version" > errs.txt
 if [ -s errs.txt ] ; then
     # At least one ROSE encode/decode unit test failed.
     echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > ${RESULT_FILE}
-    echo "<testsuite errors=\"0\" time=\"0\" tests=\"1\" name=\"LibpriTestSuite\">" >> ${RESULT_FILE}
+    echo "<testsuite errors=\"1\" time=\"0\" tests=\"1\" name=\"LibpriTestSuite\">" >> ${RESULT_FILE}
     echo "<testcase time=\"0\" name=\"rosetest\">" >> ${RESULT_FILE}
     echo "<failure><![CDATA[" >> ${RESULT_FILE}
-    cat rosetest_results.txt >> ${RESULT_FILE}
+    cat errors.txt >> ${RESULT_FILE}
     echo "]]>" >> ${RESULT_FILE}
     echo "</failure>" >> ${RESULT_FILE}
     echo "</testcase>" >> ${RESULT_FILE}




More information about the asterisk-commits mailing list