[CI/script] Fix mixed backend test list bug (#9345)
author오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 3 Dec 2019 04:20:05 +0000 (13:20 +0900)
committer이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Tue, 3 Dec 2019 04:20:05 +0000 (13:20 +0900)
- Don't find acl_cl test list file: not defined, use default setting
- Fix for loop for tizen bash version (3.x)

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
infra/scripts/test_arm_neurun_mixed.sh

index 2b90706..97b0e6e 100755 (executable)
@@ -9,12 +9,13 @@ pushd ${ROOT_PATH}
 
 # NOTE Fixed backend assignment by type of operation
 # TODO Enhance this with randomized test
-BACKENDS=(cpu acl_cl acl_neon)
+BACKENDS=(cpu acl_neon)
 
-# Get the intersect of framework test list files(each backend has a lsit)
+# Get the intersect of framework test list files
+# acl_cl is default. Other backends have own test list
 TESTLIST_PREFIX="tests/scripts/neurun_frameworktest_list.armv7l"
 cat $TESTLIST_PREFIX.${BACKENDS[0]}.txt | sort > $TESTLIST_PREFIX.intersect.txt
-for BACKEND in $BACKENDS; do
+for BACKEND in "${BACKENDS[@]}"; do
     comm -12 <(sort $TESTLIST_PREFIX.intersect.txt) <(sort $TESTLIST_PREFIX.$BACKEND.txt) > $TESTLIST_PREFIX.intersect.next.txt
     mv $TESTLIST_PREFIX.intersect.next.txt $TESTLIST_PREFIX.intersect.txt
 done