Commit 997855db authored by Mike Bayer's avatar Mike Bayer

Add pretty_tox setup

This changeset adds the pretty_tox script runner to SQLAlchemy-migrate,
so that current test runs can be viewed clearly.

Change-Id: I3884703e24cb636983a0202c46899c772419d401
parent 75034abe
......@@ -16,6 +16,7 @@ sphinx>=1.1.2,<1.2
# NOTE(rpodolyaka): This version identifier is currently necessary as
#!/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
python testr --testr-args="--subunit $TESTRARGS --concurrency=1" | subunit-trace -f
# 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
......@@ -5,12 +5,12 @@ envlist = py26,py27,py26sa07,py27sa07,py26sa08,py27sa08,py26sa09,py27sa09,py33,p
usedevelop = True
whitelist_externals = bash
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
commands =
python testr --slowest --testr-args='{posargs} --concurrency=1'
commands = bash tools/ '{posargs}'
deps = sqlalchemy>=0.9
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment