Commit 1de03e7b authored by unknown's avatar unknown

Fix error handling in atrt-mysqltest-run

parent 454062de
#!/bin/sh
set -e -x
p=`pwd`
cd $MYSQL_BASE_DIR/mysql-test
./mysql-test-run --with-ndbcluster --ndbconnectstring=$NDB_CONNECTSTRING $*
./mysql-test-run --with-ndbcluster --ndbconnectstring=$NDB_CONNECTSTRING $* | tee $p/output.txt
f=`grep -c fail $p/output.txt`
o=`grep -c pass $p/output.txt`
if [ $o -gt 0 -a $f -eq 0 ]
then
echo "NDBT_ProgramExit: OK"
exit 0
fi
echo "NDBT_ProgramExit: Failed"
exit 1
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