From: 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 Date: Tue, 3 Dec 2019 05:30:24 +0000 (+0900) Subject: [CI/script] Fix error by old bash version (#9343) X-Git-Tag: submit/tizen/20191205.083104~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bc1d5fbf771ad629787e182563a8768ef87b88c;p=platform%2Fcore%2Fml%2Fnnfw.git [CI/script] Fix error by old bash version (#9343) Fix for loop bug on tizen by old bash version (3.x) Signed-off-by: Hyeongseok Oh --- diff --git a/infra/scripts/test_arm_neurun_acl_cl.sh b/infra/scripts/test_arm_neurun_acl_cl.sh index a816bc3..656b25c 100755 --- a/infra/scripts/test_arm_neurun_acl_cl.sh +++ b/infra/scripts/test_arm_neurun_acl_cl.sh @@ -11,9 +11,9 @@ FRAMEWORK_TESTLIST="" REPORT_BASE="report/${BACKEND}" EXECUTORS=("Linear" "Dataflow" "Parallel") -for EXECUTOR in ${EXECUTORS}; +for EXECUTOR in "${EXECUTORS[@]}"; do - echo "[EXECUTOR]: ${EXECUTORS}" + echo "[EXECUTOR]: ${EXECUTOR}" export EXECUTOR="${EXECUTOR}" Unittests "${BACKEND}" "${UNITTEST_SKIPLIST}" "${REPORT_BASE}/${EXECUTOR}" TFLiteModelVerification "${BACKEND}" "${FRAMEWORK_TESTLIST}" "${REPORT_BASE}/${EXECUTOR}" diff --git a/infra/scripts/test_arm_neurun_acl_neon.sh b/infra/scripts/test_arm_neurun_acl_neon.sh index 1848122..23a4a8d 100755 --- a/infra/scripts/test_arm_neurun_acl_neon.sh +++ b/infra/scripts/test_arm_neurun_acl_neon.sh @@ -11,9 +11,9 @@ FRAMEWORK_TESTLIST="tests/scripts/neurun_frameworktest_list.armv7l.acl_neon.txt" REPORT_BASE="report/${BACKEND}" EXECUTORS=("Linear" "Dataflow" "Parallel") -for EXECUTOR in ${EXECUTORS}; +for EXECUTOR in "${EXECUTORS[@]}"; do - echo "[EXECUTOR]: ${EXECUTORS}" + echo "[EXECUTOR]: ${EXECUTOR}" export EXECUTOR="${EXECUTOR}" Unittests "${BACKEND}" "${UNITTEST_SKIPLIST}" "${REPORT_BASE}/${EXECUTOR}" TFLiteModelVerification "${BACKEND}" "${FRAMEWORK_TESTLIST}" "${REPORT_BASE}/${EXECUTOR}" diff --git a/infra/scripts/test_arm_neurun_cpu.sh b/infra/scripts/test_arm_neurun_cpu.sh index c2a890a..2c55709 100755 --- a/infra/scripts/test_arm_neurun_cpu.sh +++ b/infra/scripts/test_arm_neurun_cpu.sh @@ -11,9 +11,9 @@ FRAMEWORK_TESTLIST="tests/scripts/neurun_frameworktest_list.armv7l.cpu.txt" REPORT_BASE="report/${BACKEND}" EXECUTORS=("Linear" "Dataflow" "Parallel") -for EXECUTOR in ${EXECUTORS}; +for EXECUTOR in "${EXECUTORS[@]}"; do - echo "[EXECUTOR]: ${EXECUTORS}" + echo "[EXECUTOR]: ${EXECUTOR}" export EXECUTOR="${EXECUTOR}" Unittests "${BACKEND}" "${UNITTEST_SKIPLIST}" "${REPORT_BASE}/${EXECUTOR}" TFLiteModelVerification "${BACKEND}" "${FRAMEWORK_TESTLIST}" "${REPORT_BASE}/${EXECUTOR}"