Browse Source
Modified run.sh to mount a local storage
pull/1196/head
Sergio Bertolin
9 years ago
committed by
Lukas Reschke
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
2 changed files with
9 additions and
0 deletions
-
build/integration/local_storage/hello.txt
-
build/integration/run.sh
|
|
|
@ -0,0 +1 @@ |
|
|
|
Hello local storage |
|
|
|
@ -36,12 +36,20 @@ echo $PHPPID_FED |
|
|
|
export TEST_SERVER_URL="http://localhost:$PORT/ocs/" |
|
|
|
export TEST_SERVER_FED_URL="http://localhost:$PORT_FED/ocs/" |
|
|
|
|
|
|
|
APACHE_USER=`ps -ef | egrep '(httpd|apache2|apache)' | grep -v \`whoami\` | grep -v root | head -n1 | awk '{print $1}'` |
|
|
|
|
|
|
|
OUTPUT_CREATE_STORAGE=`sudo -u $APACHE_USER ../../occ files_external:create local_storage local null::null -c datadir=./build/integration/local_storage` |
|
|
|
|
|
|
|
ID_STORAGE=`echo $OUTPUT_CREATE_STORAGE | awk {'print $5'}` |
|
|
|
|
|
|
|
vendor/bin/behat -f junit -f pretty $SCENARIO_TO_RUN |
|
|
|
RESULT=$? |
|
|
|
|
|
|
|
kill $PHPPID |
|
|
|
kill $PHPPID_FED |
|
|
|
|
|
|
|
sudo -u $APACHE_USER ../../occ files_external:delete -y $ID_STORAGE |
|
|
|
|
|
|
|
if [ -z $HIDE_OC_LOGS ]; then |
|
|
|
tail "../../data/nextcloud.log" |
|
|
|
fi |
|
|
|
|