Check postinstall has been done before running tests

This commit is contained in:
Alexandre Aubin 2018-12-10 03:27:34 +01:00
parent 480231e2c2
commit 2ba5f5bb3f

View file

@ -293,7 +293,8 @@ function run_tests()
git pull > /dev/null 2>&1 git pull > /dev/null 2>&1
# Run tests # Run tests
echo "Running tests for YunoHost" info "Running tests for YunoHost ..."
[ -e "/etc/yunohost/installed" ] || critical "You should run postinstallation before running tests :s."
cd /ynh-dev/yunohost/ cd /ynh-dev/yunohost/
py.test tests py.test tests
cd /ynh-dev/yunohost/src/yunohost cd /ynh-dev/yunohost/src/yunohost