summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstruss <rrstrous@nate.com>2020-10-14 10:37:09 +0900
committerGitHub <noreply@github.com>2020-10-14 10:37:09 +0900
commitb057a50751fa7a8e64260d90a08f197d82eb6ad1 (patch)
treef1dc327a8332213e4303759572c974970ea1bbf4
parent39994dffe0a68d492e6c870d8c9e26a86d557626 (diff)
downloadnnfw-b057a50751fa7a8e64260d90a08f197d82eb6ad1.tar.gz
nnfw-b057a50751fa7a8e64260d90a08f197d82eb6ad1.tar.bz2
nnfw-b057a50751fa7a8e64260d90a08f197d82eb6ad1.zip
[tests]Update model file position (#4607)
This will change model load directory as `run_test.sh` changed. ONE-DCO-1.0-Signed-off-by: KiDeuk Bang <rrstrous@nate.com>
-rw-r--r--tests/scripts/models/run_test_android.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/scripts/models/run_test_android.sh b/tests/scripts/models/run_test_android.sh
index bf1382743..74b5cdd46 100644
--- a/tests/scripts/models/run_test_android.sh
+++ b/tests/scripts/models/run_test_android.sh
@@ -123,14 +123,13 @@ run_tests()
continue
fi
- TEST_CACHE_PATH=$CACHE_ROOT_PATH/$TEST_NAME
- MODELFILE=$TEST_CACHE_PATH/$MODELFILE_NAME
+ MODELFILE=$CACHE_ROOT_PATH/$MODELFILE_NAME
# Find model file for downloaded by zip
if [ "${MODELFILE_NAME##*.}" = "zip" ]; then
__PWD=$(pwd)
- cd $TEST_CACHE_PATH
- MODELFILE=$TEST_CACHE_PATH/$(ls *.tflite)
+ cd $CACHE_ROOT_PATH
+ MODELFILE=$CACHE_ROOT_PATH/$(ls ${MODELFILE_NAME%.zip}/*.tflite)
cd $__PWD
fi