Bring over debug_helper.sh
Bring over the debug_helper.sh script from keystoneclient
This commit is contained in:
parent
2bf9bfa66a
commit
14d58e849a
18
tools/debug_helper.sh
Executable file
18
tools/debug_helper.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
TMP_DIR=`mktemp -d` || exit 1
|
||||||
|
trap "rm -rf $TMP_DIR" EXIT
|
||||||
|
|
||||||
|
ALL_TESTS=$TMP_DIR/all_tests
|
||||||
|
TESTS_TO_RUN=$TMP_DIR/ksc_to_run
|
||||||
|
|
||||||
|
python -m testtools.run discover -t ./ ./keystonemiddleware/tests --list > $ALL_TESTS
|
||||||
|
|
||||||
|
if [ "$1" ]
|
||||||
|
then
|
||||||
|
grep "$1" < $ALL_TESTS > $TESTS_TO_RUN
|
||||||
|
else
|
||||||
|
mv $ALL_TESTS $TESTS_TO_RUN
|
||||||
|
fi
|
||||||
|
|
||||||
|
python -m testtools.run discover --load-list $TESTS_TO_RUN
|
Loading…
Reference in New Issue
Block a user