From caff3d83c15ddabf073be7f6322d8cdc8f4fe6a8 Mon Sep 17 00:00:00 2001 From: zhangzhaoju Date: Tue, 20 Apr 2021 11:47:09 +0800 Subject: [PATCH] Add build.sh opts check, while -t on/ut -e $dev set together, only invalid -e option --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index 4ea51391cd2..4a60e6da584 100755 --- a/build.sh +++ b/build.sh @@ -346,6 +346,11 @@ checkopts() esac done + if [[ "X$RUN_TESTCASES" == "Xon" && "X$DEVICE" != "X" ]]; then + echo "WARNING:Option -e can't be set while option -t on/ut is set, reset device to empty." + DEVICE="" + fi + # Parse device # Process build option if [[ "X$DEVICE" == "Xgpu" ]]; then