From 2ba5f5bb3f20de6ce154b9cfcd7e5fb28d0c69c0 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 10 Dec 2018 03:27:34 +0100 Subject: [PATCH] Check postinstall has been done before running tests --- ynh-dev | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ynh-dev b/ynh-dev index db693be..adbd087 100755 --- a/ynh-dev +++ b/ynh-dev @@ -293,7 +293,8 @@ function run_tests() git pull > /dev/null 2>&1 # 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/ py.test tests cd /ynh-dev/yunohost/src/yunohost