From cfb0bcab2b8a9c65d1298fbfdd443061a9cd3f53 Mon Sep 17 00:00:00 2001 From: Zejun Lin <871886504@qq.com> Date: Tue, 12 Mar 2019 16:03:28 +0800 Subject: [PATCH] Fix the problem that part of the sdk's unit test do not block CI when they fail (#827) fix unittest err exit --- test/unittest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 test/unittest.sh diff --git a/test/unittest.sh b/test/unittest.sh old mode 100644 new mode 100755 index e87dca2671..a94beb6017 --- a/test/unittest.sh +++ b/test/unittest.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e CWD=${PWD} # -------------For python unittest------------- @@ -25,4 +26,4 @@ python3 -m unittest discover -v tests cd ${CWD}/../src/nni_manager echo "" echo "===========================Testing: nni_manager===========================" -npm run test \ No newline at end of file +npm run test