fix 310 test script, finding pacakges in base dir only

This commit is contained in:
yanghaoran 2022-05-25 10:24:36 +08:00
parent a10015c6fa
commit 79e370d7aa
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ if [[ "${PACKAGE_TYPE}" == "python" ]]; then
elif [[ "${PACKAGE_TYPE}" == "cpp" ]]; then
# using acl tar package, extract tar package here
rm -rf mindspore_ascend*
PACKAGE_NAME_FULL=$(find "${PACKAGE_PATH}" -name "mindspore_ascend*.tar.gz")
PACKAGE_NAME_FULL=$(find "${PACKAGE_PATH}" -maxdepth 1 -name "mindspore_ascend*.tar.gz")
PACKAGE_NAME=${PACKAGE_NAME_FULL##*/}
tar -xzf ${PACKAGE_PATH}/${PACKAGE_NAME}