From 4ef93c4b04419558704159e7dfd1bc4fbe75c1d9 Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Tue, 10 Feb 2015 17:09:23 +0000 Subject: [PATCH] Make the test-limit test more robust It wasn't counting the number of tests and it should to say it is just running one test. --- test-limit.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test-limit.sh b/test-limit.sh index f0212e6..9657e34 100755 --- a/test-limit.sh +++ b/test-limit.sh @@ -6,8 +6,10 @@ # This covers a situation where the change of intercepts to fixtures # broke limiting tests and we never knew. -GREP_MATCH='gabbi.driver.test_intercept_self_checklimit.test_request ... ok' +GREP_TEST_MATCH='gabbi.driver.test_intercept_self_checklimit.test_request ... ok' +GREP_COUNT_MATCH='Ran 1 ' python setup.py testr --testr-args="checklimit" && \ testr last --subunit | subunit2pyunit 2>&1 | \ - grep "${GREP_MATCH}" + grep "${GREP_TEST_MATCH}" && \ + testr last | grep "${GREP_COUNT_MATCH}"