[nnpkg-tcs] Run nnpkg-tcs after tc exists (#8119)
author이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Mon, 14 Oct 2019 06:12:10 +0000 (15:12 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 14 Oct 2019 06:12:10 +0000 (15:12 +0900)
Some nnpkg-tcs are not generated via `tf2tflite` test filter.
Thus, nnpkg-tcs checks whether test case exists before running.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
infra/scripts/test_arm_nnpkg.sh

index 23759a3..af6b229 100755 (executable)
@@ -11,7 +11,9 @@ EXITCODE=0
 PKG_LIST=$(cat tools/nnpackage_tool/nnpkg_test/list)
 for f in ${PKG_LIST}
 do
-  tools/nnpackage_tool/nnpkg_test/nnpkg_test.sh -d -i nnpkg-tcs $f
+  if [ -e "nnpkg-tcs/$f" ]; then
+    tools/nnpackage_tool/nnpkg_test/nnpkg_test.sh -d -i nnpkg-tcs $f
+  fi
   EXITCODE_F=$?
 
   if [ ${EXITCODE_F} -ne 0 ]; then