Browse Source

ci: refactor run cpp test script

tags/v0.4.0
luzzyzhang Xinran Xu 5 years ago
parent
commit
6bd09b3888
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      ci/run_cpp_test.sh

+ 4
- 5
ci/run_cpp_test.sh View File

@@ -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 "$@"
fi

Loading…
Cancel
Save