diff options
author | fab <fabrice.leal.ch@gmail.com> | 2018-12-25 19:03:26 +0000 |
---|---|---|
committer | fab <fabrice.leal.ch@gmail.com> | 2018-12-25 19:03:26 +0000 |
commit | 64701d6a8ecfc3fcbe8d44282ad868eedf106937 (patch) | |
tree | 78c388d0e90fca2e58de1f021c1650a5889e73fe /tests | |
parent | 5f2c8ad4f6f6e01a1d3816b430e9695c03f30472 (diff) |
avoid a pow call if we can
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/driver.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/driver.sh b/tests/driver.sh index 879c093d..d20809d0 100755 --- a/tests/driver.sh +++ b/tests/driver.sh @@ -21,5 +21,9 @@ fi $TESTSRV -q -a 127.0.0.1 & echo $! >> $TESTPID sleep 1 -python3 -m unittest $1.py +if [[ $# -eq 1 ]] ; then + python3 -m unittest $1.py +else + python3 -m unittest $1.Suite.$2 +fi kill `cat $TESTPID` |