diff --git a/llvm_test_script/run_docker.sh b/llvm_test_script/run_docker.sh index 01d53b2eb3ab3dda1fbcc9a1d6657346c1bf2ba0..5e70ffde1c37435afd68bfc63bd75a6fd9bd2e88 100755 --- a/llvm_test_script/run_docker.sh +++ b/llvm_test_script/run_docker.sh @@ -51,7 +51,7 @@ fi (cd ${WORK_DIR}/llvmopen-source-transfer-gitee/llvm_test_script ; cp generate_config.py run_x86_test.sh run_x86_O2-test.sh X86_whitelist.txt X86_O2_whitelist.txt ${WORK_DIR}/llvmts_scripts/ ) # pull openharmony code -if [ "echo ${check_type} | grep asan" ] || [ "echo ${check_type} | grep ndk" ]; then +if echo ${check_type} | grep asan || echo ${check_type} | grep ndk; then echo "pull openharmony code" cd ${WORK_DIR}/llvmopen-source-transfer-gitee/llvm_test_script/asan cp run_pull_oh.sh ${WORK_DIR}/ @@ -126,7 +126,7 @@ echo "the time before test is : ----->" "$timebeforetest" wait # build openharmony code -if [ "echo ${check_type} | grep asan" ] || [ "echo ${check_type} | grep ndk" ]; then +if echo ${check_type} | grep asan || echo ${check_type} | grep ndk; then echo "build openharmony code" cd ${WORK_DIR}/llvmopen-source-transfer-gitee/llvm_test_script/asan cp run_build_oh.sh ${WORK_DIR}/