summaryrefslogtreecommitdiff
path: root/ubuntu/scripts/rt-migrate-test-parser.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ubuntu/scripts/rt-migrate-test-parser.sh')
-rwxr-xr-xubuntu/scripts/rt-migrate-test-parser.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/ubuntu/scripts/rt-migrate-test-parser.sh b/ubuntu/scripts/rt-migrate-test-parser.sh
new file mode 100755
index 0000000..e3c5e33
--- /dev/null
+++ b/ubuntu/scripts/rt-migrate-test-parser.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+LOG=$1
+
+sed -n -e "/^ Task 0/,$ p" ${LOG} > tmp.log
+sed -i -e "s/ (.*//" -e "s/^\s*//" tmp.log
+
+while read l;
+do
+ [ -n "`echo $l | grep '^Task'`" ] && T="$l" && continue
+ [ -n "$l" ] && echo "$T $l pass"
+done < tmp.log