summaryrefslogtreecommitdiff
path: root/ubuntu/scripts/rt-migrate-test-parser.sh
blob: e3c5e336641679c55cd204658388848cd7a0f6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
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