diff --git a/build.sh b/build.sh index 6af7a0d08fe..e0f494f9b62 100755 --- a/build.sh +++ b/build.sh @@ -340,7 +340,7 @@ checkopts() esac done - if [[ "X$RUN_TESTCASES" == "Xon" && "X$DEVICE" != "X" ]]; then + if [[ "X$RUN_TESTCASES" == "Xon" && "X$DEVICE" != "X" && "X$COMPILE_LITE" != "Xon" ]]; then echo "WARNING:Option -e can't be set while option -t on/ut is set, reset device to empty." DEVICE="" fi