deb-python-gabbi/test-failskip.sh
Chris Dent affd95d24e Treat REPLACER errors as test failures
Make sure that when one of the magic replacers is used that if there
is an error attempting to access the referenced data it is treated
as a test failure and not as an error.

This effectively means trapping various exceptions and turning them
into AssertionErrorS.
2015-07-23 11:51:42 +01:00

12 lines
311 B
Bash
Executable File

#!/bin/bash
# Run the tests and confirm that the stuff we expect to skip or fail
# does.
GREP_FAIL_MATCH='expected failures=8'
GREP_SKIP_MATCH='skips=2'
python setup.py testr && \
testr last --subunit | subunit2pyunit 2>&1 | \
grep "${GREP_FAIL_MATCH}" && \
testr last | grep "${GREP_SKIP_MATCH}"