mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Gotta source the helper when being in the appropriate folder, because of the new 'realpath' for YNH_APP_BASEDIR
This commit is contained in:
parent
55a3313bb9
commit
27300282da
2 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,4 @@
|
||||||
_make_dummy_src() {
|
_make_dummy_src() {
|
||||||
echo "test coucou"
|
|
||||||
if [ ! -e $HTTPSERVER_DIR/dummy.tar.gz ]
|
if [ ! -e $HTTPSERVER_DIR/dummy.tar.gz ]
|
||||||
then
|
then
|
||||||
pushd "$HTTPSERVER_DIR"
|
pushd "$HTTPSERVER_DIR"
|
||||||
|
|
|
@ -43,7 +43,6 @@ VAR_WWW=$(mktemp -d)/var/www
|
||||||
mkdir -p $VAR_WWW
|
mkdir -p $VAR_WWW
|
||||||
# =========================================================
|
# =========================================================
|
||||||
|
|
||||||
source /usr/share/yunohost/helpers
|
|
||||||
for TEST_SUITE in $(ls test_helpers.d/*)
|
for TEST_SUITE in $(ls test_helpers.d/*)
|
||||||
do
|
do
|
||||||
source $TEST_SUITE
|
source $TEST_SUITE
|
||||||
|
@ -58,11 +57,12 @@ for TEST in $TESTS
|
||||||
do
|
do
|
||||||
log_test $TEST
|
log_test $TEST
|
||||||
cd $(mktemp -d)
|
cd $(mktemp -d)
|
||||||
(app=ynhtest
|
(mkdir conf
|
||||||
YNH_APP_ID=$app
|
|
||||||
mkdir conf
|
|
||||||
mkdir scripts
|
mkdir scripts
|
||||||
cd scripts
|
cd scripts
|
||||||
|
source /usr/share/yunohost/helpers
|
||||||
|
app=ynhtest
|
||||||
|
YNH_APP_ID=$app
|
||||||
set -eux
|
set -eux
|
||||||
$TEST
|
$TEST
|
||||||
) > ./test.log 2>&1
|
) > ./test.log 2>&1
|
||||||
|
|
Loading…
Add table
Reference in a new issue