summaryrefslogtreecommitdiffstats
path: root/lrm/test/testcases/rscmgmt.log_filter
blob: 34debc55828f87474aafcba3da1bdc89cf54ab30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

awk '
n<2 && /ERROR: on_msg_add_rsc: same id resource exists./ {n++; next}
m<1 && /ERROR: on_msg_del_rsc: no rsc with id/ {m++; next}
{print}
END{
	if( n!=2 )
		print "ERROR: missed on_msg_add_rsc errors";
	if( m!=1 )
		print "ERROR: missed on_msg_del_rsc errors";
}
'