Commit 841a372b authored by unknown's avatar unknown

mysql-test-run BSD cleanups


mysql-test/mysql-test-run:
  BSD cleanups
parent c9b8bf0b
......@@ -56,11 +56,11 @@ MYERR="$CWD/var/log/mysqld.err"
#++
# Program Definitions
#--
BASENAME=/bin/basename
BASENAME=`which basename`
CAT=/bin/cat
CUT=/usr/bin/cut
ECHO=/bin/echo
EXPR=/usr/bin/expr
EXPR=`which expr`
PRINTF=/usr/bin/printf
RM=/bin/rm
TIME=/usr/bin/time
......@@ -70,8 +70,7 @@ MYSQL_TEST="$BASEDIR/client/mysqltest"
MYSQLADMIN="$BASEDIR/client/mysqladmin"
MYSQL_TEST="$MYSQL_TEST --socket=$MYSOCK --database=$DB --user=$DBUSER --password=$DBPASSWD --silent"
INSTALL_DB="$MYBIN/mysql-test_install_db"
[ $1 = "-gcov" ] && DO_GCOV=1
[ "$1" = "-gcov" ] && DO_GCOV=1
#++
# Terminal Modifications
#--
......@@ -81,8 +80,6 @@ SETCOLOR_FAILURE="$ECHO -n "
SETCOLOR_WARNING="$ECHO -n "
SETCOLOR_NORMAL="$ECHO -n "
#++
# Function Definitions
#--
......@@ -233,7 +230,9 @@ mysql_loadstd () {
return 1
}
[ $DO_GCOV = 1 ] && gcov_clean # clean up stale gcov files if running with gcov
[ "$DO_GCOV" -a ! -x "$GCOV" ] && error "No gcov found"
[ "$DO_GCOV" ] && gcov_clean # clean up stale gcov files if running with gcov
mysql_install_db
......@@ -315,6 +314,6 @@ $ECHO
report_stats
$ECHO
[ $DO_GCOV = 1 ] && gcov_collect # collect coverage information
[ "$DO_GCOV" ] && gcov_collect # collect coverage information
exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment