summaryrefslogtreecommitdiffstats
path: root/build/integration/run.sh
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2016-08-05 13:13:49 +0000
committerLukas Reschke <lukas@statuscode.ch>2016-08-30 17:23:04 +0200
commitf72fea8d0ec5ff00a31c81a17059547becb2c37e (patch)
tree347c9a64c370221c08c413232d135447178c0290 /build/integration/run.sh
parentc54d6d05c9186a4a814235006abf6e74242bc3a2 (diff)
downloadnextcloud-server-f72fea8d0ec5ff00a31c81a17059547becb2c37e.tar.gz
nextcloud-server-f72fea8d0ec5ff00a31c81a17059547becb2c37e.zip
Modified run.sh to mount a local storage
Diffstat (limited to 'build/integration/run.sh')
-rwxr-xr-xbuild/integration/run.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/integration/run.sh b/build/integration/run.sh
index eccb378eec4..3a5bb1153d8 100755
--- a/build/integration/run.sh
+++ b/build/integration/run.sh
@@ -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