mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
e749259da6
ndb/test/run-test/atrt-mysql-test-run: Fix result handling ndb/test/run-test/daily-basic-tests.txt: Move mysql-test-run & testBackup into "basic" ndb/test/run-test/daily-devel-tests.txt: Move mysql-test-run & testBackup into "basic"
18 lines
353 B
Bash
Executable file
18 lines
353 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -x
|
|
p=`pwd`
|
|
cd $MYSQL_BASE_DIR/mysql-test
|
|
./mysql-test-run --with-ndbcluster --ndb-connectstring=$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
|