[Tests/Regression] GTEST error is ignored
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 7 May 2020 10:24:43 +0000 (19:24 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 7 May 2020 12:11:48 +0000 (21:11 +0900)
PR #2338 has incurred a regression in the test suite that
make gbs pass even if there is a failed unit test case in gtest.

This fixes the regression of #2338

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/run_unittests_binaries.sh

index 2a64a6f..3c25eef 100755 (executable)
@@ -34,9 +34,10 @@ run_entry() {
   fi
 
   ${entry} --gtest_output="xml:${entry##*/}.xml"
+  retval=$?
   export PYTHONPATH=${_PYTHONPATH}
 
-  return $?
+  return ${retval}
 }
 
 ret=0