test: adjust test.sh
This commit is contained in:
parent
90e44ced3e
commit
4f33119d46
|
@ -10,13 +10,11 @@ set +e
|
|||
#set -x
|
||||
|
||||
FILE_NAME=
|
||||
RELEASE=0
|
||||
ASYNC=0
|
||||
VALGRIND=0
|
||||
UNIQUE=0
|
||||
TEST=0
|
||||
UNAME_BIN=`which uname`
|
||||
OS_TYPE=`$UNAME_BIN`
|
||||
while getopts "f:agvum" arg
|
||||
while getopts "f:tgv" arg
|
||||
do
|
||||
case $arg in
|
||||
f)
|
||||
|
@ -25,8 +23,8 @@ do
|
|||
v)
|
||||
VALGRIND=1
|
||||
;;
|
||||
u)
|
||||
UNIQUE=1
|
||||
t)
|
||||
TEST=1
|
||||
;;
|
||||
g)
|
||||
VALGRIND=2
|
||||
|
@ -140,6 +138,11 @@ if [ -n "$FILE_NAME" ]; then
|
|||
result=$?
|
||||
echo "Execute result:" $result
|
||||
|
||||
if [ $TEST -eq 1 ]; then
|
||||
echo "Exit without check asan errors"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $result -eq 0 ]; then
|
||||
$CODE_DIR/sh/sigint_stop_dnodes.sh
|
||||
$CODE_DIR/sh/checkAsan.sh
|
||||
|
|
Loading…
Reference in New Issue