Do not return fail for test all unittest (#2348)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 20 Aug 2018 02:20:23 +0000 (11:20 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Mon, 20 Aug 2018 02:20:23 +0000 (11:20 +0900)
Do not return fail for test all unittest
Setting exit code makes CI job fail without report

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
tools/test_driver/py/run_unittest.py
tools/test_driver/run_unittest.sh

index d60a6a2..2e2ad34 100755 (executable)
@@ -146,9 +146,7 @@ def run_unittest(unittest_dir, report_dir, ldlibrary_path, runall):
                     unittest_dir=unittest_dir,
                     test_bin=test_bin,
                     gtest_option=get_gtest_option(report_dir, test_item))
-                result = os.system(cmd)
-                if result != 0:
-                    ret = result
+                os.system(cmd)
         # Run all unit tests except skip list
         else:
             cmd = "{unittest_dir}/{test_bin} {gtest_option}".format(
index 3cdab67..abf3194 100755 (executable)
@@ -80,17 +80,13 @@ for TEST_BIN in `ls $UNITTEST_TEST_DIR --hide=*.skip`; do
             else
                 TEST_LIST_ITEM="$TEST_LIST_CATEGORY""$TEST_LIST_VERBOSE_LINE"
                 $UNITTEST_TEST_DIR/$TEST_BIN --gtest_filter=$TEST_LIST_ITEM --gtest_output="xml:$UNITTEST_REPORT_DIR/$TEST_LIST_ITEM.xml"
-                ONE_UNITTEST_RESULT=$?
-                if [[ $ONE_UNITTEST_RESULT -ne 0 ]]; then
-                    TEMP_UNITTEST_RESULT=$ONE_UNITTEST_RESULT
-                fi
             fi
         done
     else
         $UNITTEST_TEST_DIR/$TEST_BIN $(get_gtest_option)
         TEMP_UNITTEST_RESULT=$?
     fi
-    
+
     if [[ $TEMP_UNITTEST_RESULT -ne 0 ]]; then
         UNITTEST_RESULT=$TEMP_UNITTEST_RESULT
         echo "$TEST_BIN failed... return code: $TEMP_UNITTEST_RESULT"