affd95d24e
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.
12 lines
311 B
Bash
Executable File
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}"
|