This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This changeset adds the pretty_tox script runner to SQLAlchemy-migrate, so that current test runs can be viewed clearly. Change-Id: I3884703e24cb636983a0202c46899c772419d401
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
# return nonzero exit status of rightmost command, so that we | ||
# get nonzero exit on test failure without halting subunit-trace | ||
set -o pipefail | ||
|
||
|
||
TESTRARGS=$1 | ||
|
||
python setup.py testr --testr-args="--subunit $TESTRARGS --concurrency=1" | subunit-trace -f | ||
retval=$? | ||
# NOTE(mtreinish) The pipe above would eat the slowest display from pbr's testr | ||
# wrapper so just manually print the slowest tests | ||
echo -e "\nSlowest Tests:\n" | ||
testr slowest | ||
exit $retval |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters