forked from mindspore-Ecosystem/mindspore
Add build.sh opts check,
while -t on/ut -e $dev set together, only invalid -e option
This commit is contained in:
parent
9e6f9aa56a
commit
caff3d83c1
5
build.sh
5
build.sh
|
@ -346,6 +346,11 @@ checkopts()
|
||||||
esac
|
esac
|
||||||
done
|
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
|
# Parse device
|
||||||
# Process build option
|
# Process build option
|
||||||
if [[ "X$DEVICE" == "Xgpu" ]]; then
|
if [[ "X$DEVICE" == "Xgpu" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue