Gotta source the helper when being in the appropriate folder, because of the new 'realpath' for YNH_APP_BASEDIR

This commit is contained in:
Alexandre Aubin 2021-05-24 16:55:35 +02:00
parent 55a3313bb9
commit 27300282da
2 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,4 @@
_make_dummy_src() {
echo "test coucou"
if [ ! -e $HTTPSERVER_DIR/dummy.tar.gz ]
then
pushd "$HTTPSERVER_DIR"

View file

@ -43,7 +43,6 @@ VAR_WWW=$(mktemp -d)/var/www
mkdir -p $VAR_WWW
# =========================================================
source /usr/share/yunohost/helpers
for TEST_SUITE in $(ls test_helpers.d/*)
do
source $TEST_SUITE
@ -58,11 +57,12 @@ for TEST in $TESTS
do
log_test $TEST
cd $(mktemp -d)
(app=ynhtest
YNH_APP_ID=$app
mkdir conf
(mkdir conf
mkdir scripts
cd scripts
source /usr/share/yunohost/helpers
app=ynhtest
YNH_APP_ID=$app
set -eux
$TEST
) > ./test.log 2>&1