Skip to content

Commit 8d371b5

Browse files
author
Ramon Medeiros
committed
Only run tests locally
1 parent 2341f32 commit 8d371b5

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

tests/run_tests.sh.in

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,14 @@ HAVE_UNITTEST=@HAVE_PYMOD_UNITTEST@
2222
PYTHON_VER=@PYTHON_VERSION@
2323

2424
if [ "$1" = "-v" ]; then
25-
OPTS="-v"
25+
# p ./test*.py means the pattern for
26+
# discover is local file starting with test
27+
OPTS="-v -p ./test*.py"
2628
shift
2729
else
2830
OPTS=""
2931
fi
3032

31-
if [ $# -ne 0 ]; then
32-
ARGS="$@"
33-
else
34-
ARGS=`find -name "test_*.py" | xargs -I @ basename @ .py`
35-
fi
36-
3733
CMD="python3 -m unittest"
3834

39-
PYTHONPATH=../src:../ $CMD $OPTS $ARGS
35+
PYTHONPATH=../src:../ $CMD $OPTS

0 commit comments

Comments
 (0)