提交 6bd09b38 编写于 作者: L luzzyzhang 提交者: Xinran Xu

ci: refactor run cpp test script

上级 96742c19
......@@ -3,7 +3,6 @@
set -e
BASEDIR=$(readlink -f "$(dirname "$0")"/..)
source "${BASEDIR}/ci/utils.sh"
export MGB_TEST_NO_LOG=1
export MGB_STABLE_RNG=1
......@@ -16,9 +15,9 @@ function cpp_test {
}
if [[ "$1" != "cpu" && "$1" != "cuda" ]] ; then
if [[ "$1" == "cpu" || "$1" == "cuda" ]] ; then
cpp_test "$@"
else
echo "Argument must cpu or cuda"
exit 1
fi
cpp_test "$@"
\ No newline at end of file
fi
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册