1.1 --- a/tests/test_resource_invitation_constraints_quota_recurring_limits.sh Tue Feb 09 14:17:52 2016 +0100
1.2 +++ b/tests/test_resource_invitation_constraints_quota_recurring_limits.sh Tue Feb 09 15:01:40 2016 +0100
1.3 @@ -172,7 +172,7 @@
1.4 # Check the quota (event is retracted).
1.5
1.6 ! [ -e "$JOURNALFILE1" ] \
1.7 -|| [ `grep "event25@example.com" "$JOURNALFILE1" | wc -l` = '2' ] \
1.8 +|| ! grep -q "event25@example.com" "$JOURNALFILE1" \
1.9 && echo "Success" \
1.10 || echo "Failed"
1.11
1.12 @@ -223,6 +223,6 @@
1.13 # Check the quota (event is confirmed for both resources).
1.14
1.15 [ -e "$JOURNALFILE2" ] \
1.16 -&& [ `grep "event25@example.com" "$JOURNALFILE2" | wc -l` = '1' ] \
1.17 +&& grep -q "event25@example.com" "$JOURNALFILE2" \
1.18 && echo "Success" \
1.19 || echo "Failed"