Specs: improve spec runner

This commit is contained in:
Dmitry Maksyoma 2021-12-07 20:57:34 +13:00
parent 8e040e58a1
commit d94b30c2fa

View File

@ -1,8 +1,12 @@
#!/bin/bash
set -e
export PYTHONPATH=${PWD}/spec
cd spec/
pipenv run mamba *_spec.py
RUN_CMD="pipenv run mamba"
if [[ -n "$1" ]]; then
$RUN_CMD "$1"
else
$RUN_CMD spec/*_spec.py
fi