mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
mysql-test-run.sh expr substr -> echo | cut
This commit is contained in:
parent
94b9b751f6
commit
9eea24708c
1 changed files with 6 additions and 5 deletions
|
@ -68,10 +68,6 @@ SLAVE_RUNNING=0
|
|||
|
||||
[ -d $MY_TMP_DIR ] || mkdir -p $MY_TMP_DIR
|
||||
|
||||
[ -z "$COLUMNS" ] && COLUMNS=80
|
||||
E=`expr $COLUMNS - 8`
|
||||
DASH72=`expr substr '________________________________________________________________________' 1 $E`
|
||||
|
||||
#++
|
||||
# mysqld Environment Parameters
|
||||
#--
|
||||
|
@ -113,6 +109,11 @@ TIME=/usr/bin/time
|
|||
TR=/usr/bin/tr
|
||||
XARGS=`which xargs | head -1`
|
||||
|
||||
[ -z "$COLUMNS" ] && COLUMNS=80
|
||||
E=`$EXPR $COLUMNS - 8`
|
||||
#DASH72=`expr substr '________________________________________________________________________' 1 $E`
|
||||
DASH72=`$ECHO '________________________________________________________________________'|$CUT -c 1-$E`
|
||||
|
||||
# on source dist, we pick up freshly build executables
|
||||
# on binary, use what is installed
|
||||
if [ x$SOURCE_DIST = x1 ] ; then
|
||||
|
@ -469,7 +470,7 @@ run_testcase ()
|
|||
fi
|
||||
|
||||
timestr="$USERT $SYST $REALT"
|
||||
pname=`$EXPR substr "$tname " 1 16`
|
||||
pname=`$ECHO "$tname "|$CUT -c 1-16`
|
||||
$SETCOLOR_NORMAL && $ECHO -n "$pname $timestr"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue