mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
[enh] Be able to select which test executes
This commit is contained in:
parent
f95b17db79
commit
399bfc24e2
1 changed files with 8 additions and 2 deletions
10
ynh-dev
10
ynh-dev
|
@ -328,7 +328,13 @@ elif [ "$1" = "test" ]; then
|
|||
VERSION=$2
|
||||
|
||||
for i in ${!packages[@]}; do
|
||||
case ${packages[i]} in
|
||||
package=$(echo ${packages[i]} | cut -d/ -f1)
|
||||
selection=$(echo ${packages[i]} | cut -d/ -f2)
|
||||
if [ "$selection" = "yunohost" ]; then
|
||||
selection=""
|
||||
fi
|
||||
|
||||
case $package in
|
||||
yunohost)
|
||||
# Pytest and tests dependencies
|
||||
if ! type "pytest" > /dev/null; then
|
||||
|
@ -363,7 +369,7 @@ elif [ "$1" = "test" ]; then
|
|||
cd /vagrant/yunohost/
|
||||
py.test tests
|
||||
cd /vagrant/yunohost/src/yunohost
|
||||
py.test tests
|
||||
py.test tests/$selection
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue