Skip to content

Commit

Permalink
Make the test-limit test more robust
Browse files Browse the repository at this point in the history
It wasn't counting the number of tests and it should to say it
is just running one test.
  • Loading branch information
cdent committed Feb 10, 2015
1 parent 07bc402 commit 4ef93c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test-limit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 4ef93c4

Please sign in to comment.