blob: 0b83b9151b25aacd17a69ccae2e203e760413324 [file] [log] [blame]
Matthew Treinish1ee43982013-12-06 21:08:31 +00001#!/usr/bin/env bash
2
Matthew Treinish68c78712016-07-28 14:47:27 -04003echo "WARNING: This script is deprecated and will be removed in the near future. Please migrate to tempest run or another method of launching a test runner"
4
Matthew Treinish1ee43982013-12-06 21:08:31 +00005set -o pipefail
Matthew Treinish85512782013-07-18 15:53:30 -04006
7TESTRARGS=$1
Matthew Treinish16b68262014-12-05 19:06:31 -05008python setup.py testr --testr-args="--subunit $TESTRARGS" | subunit-trace --no-failure-debug -f
9retval=$?
10# NOTE(mtreinish) The pipe above would eat the slowest display from pbr's testr
11# wrapper so just manually print the slowest tests.
12echo -e "\nSlowest Tests:\n"
13testr slowest
14exit $retval