summaryrefslogtreecommitdiff
path: root/mysql-test/ndb/ndbcluster.sh
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-12-08 22:56:23 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-12-08 22:56:23 +0000
commit5380a3a600b0d0f13f80eb10071bafeb8a89b0ed (patch)
tree70bb7ee47ee35006e8c9b35e09f46506a1453388 /mysql-test/ndb/ndbcluster.sh
parent43a1ddcfcce4f9f9902e601b2435549cb6233c02 (diff)
downloadmariadb-git-5380a3a600b0d0f13f80eb10071bafeb8a89b0ed.tar.gz
ndbcluster.sh:
made compare of logs possible in ndb test restart_log.result, restart.test, restart.result: new file mysql-test/ndb/ndbcluster.sh: made compare of logs possible in ndb test
Diffstat (limited to 'mysql-test/ndb/ndbcluster.sh')
-rw-r--r--mysql-test/ndb/ndbcluster.sh24
1 files changed, 9 insertions, 15 deletions
diff --git a/mysql-test/ndb/ndbcluster.sh b/mysql-test/ndb/ndbcluster.sh
index 11cb8e77268..848223a091c 100644
--- a/mysql-test/ndb/ndbcluster.sh
+++ b/mysql-test/ndb/ndbcluster.sh
@@ -300,26 +300,20 @@ do_ndb_test ()
test_result=$fs_result/${test_name}.result
test_reject=$fs_result/${test_name}.reject
- cp $clusterlog $test_log_result
- cat ndb/${test_name}_log.result >> $test_log_result
+ clean_log='s/.*\[MgmSrvr\]//'
+
+ cat $clusterlog ndb/${test_name}_log.result | sed -e $clean_log > $test_log_result
cp ndb/${test_name}.result $test_result
cat ndb/${test_name}.test | $exec_mgmtclient > $test_reject
- cp $clusterlog $test_log_reject
- r=`diff -C 5 $test_result $test_reject`
- if [ $r ] ; then
- t="fail"
- else
- t="pass"
- fi
+ cat $clusterlog | sed -e $clean_log > $test_log_reject
+
+ t="pass"
+ diff -C 5 $test_result $test_reject || t="fail"
printf "ndb_mgm output %20s [%s]\n" $test_name $t
- r=`diff -C 5 $test_log_result $test_log_reject`
- if [ $r ] ; then
- t="fail"
- else
- t="pass"
- fi
+ t="pass"
+ diff -C 5 $test_log_result $test_log_reject || t="fail"
printf "clusterlog output %20s [%s]\n" $test_name $t
}