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>
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(
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"