summaryrefslogtreecommitdiff
path: root/storage/ndb/test/run-test/atrt-analyze-result.sh
diff options
context:
space:
mode:
Diffstat (limited to 'storage/ndb/test/run-test/atrt-analyze-result.sh')
-rwxr-xr-xstorage/ndb/test/run-test/atrt-analyze-result.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/storage/ndb/test/run-test/atrt-analyze-result.sh b/storage/ndb/test/run-test/atrt-analyze-result.sh
new file mode 100755
index 00000000000..0fa46e918ef
--- /dev/null
+++ b/storage/ndb/test/run-test/atrt-analyze-result.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+f=`find result -name 'log.out' | xargs grep "NDBT_ProgramExit: " | grep -c "Failed"`
+o=`find result -name 'log.out' | xargs grep "NDBT_ProgramExit: " | grep -c "OK"`
+
+if [ $o -gt 0 -a $f -eq 0 ]
+then
+ exit 0
+fi
+
+exit 1
+