Index: build/build.sh =================================================================== diff -u -r22bd0f3da8c3d924e50deb40e641a2891e8150f4 -re9c8b5218cd3adb111a5f2b46b89b77191479ebf --- build/build.sh (.../build.sh) (revision 22bd0f3da8c3d924e50deb40e641a2891e8150f4) +++ build/build.sh (.../build.sh) (revision e9c8b5218cd3adb111a5f2b46b89b77191479ebf) @@ -318,6 +318,15 @@ # Generate code review project getCodeReviewReport "UI" $REPORT_DIR +# Open up the statu report and parse for the word Faild. This is +# for the unit test and integration tests that are executed at another +# script. The results will be used to mark the build folder as passed or failed +failedCases=$(cat $REPORT_DIR/StatusReport.csv | grep "Failed") +if [[ ! -z $failedCases ]] +then + hasTestPassed=false +fi + # Mark pass/fail to the build folder markRemoteFolderWithPassFail $hasTestPassed $REPORT_DIR Index: build/unittest.sh =================================================================== diff -u -r22bd0f3da8c3d924e50deb40e641a2891e8150f4 -re9c8b5218cd3adb111a5f2b46b89b77191479ebf --- build/unittest.sh (.../unittest.sh) (revision 22bd0f3da8c3d924e50deb40e641a2891e8150f4) +++ build/unittest.sh (.../unittest.sh) (revision e9c8b5218cd3adb111a5f2b46b89b77191479ebf) @@ -81,9 +81,6 @@ LOG_PATH=$REPORT_PATH/$LOG UNITTEST_RESULT=0 - - # Test pass/fail flag - hasTestPassed=true } function setup_System_Environment() { @@ -232,7 +229,6 @@ then echo "Coverage test failed!" echo "Coverage Test, Failed, $percentage%" >> $STATUS_REPORT - hasTestPassed=false #exit 1 else echo "Coverage test passed!" @@ -281,7 +277,6 @@ do echo $test >> $STATUS_REPORT done - hasTestPassed=false #exit 1 else echo "Unit Test, Passed" >> $STATUS_REPORT @@ -362,7 +357,4 @@ main copy_TestsResults_IntoServer check_TestResults - -# Mark pass/fail to the build folder -markRemoteFolderWithPassFail $hasTestPassed $REPORT_DIR