aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-02-06 22:08:46 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-06 15:59:31 +0200
commit1d7bf328f8e3bbcd082b808825d435f88b9e484e (patch)
tree179c979378c17fe11f4bd78b10f18e40c06865dc /build/integration
parent65bc12960f77c172df271646c9c4458c1bbc5aaf (diff)
downloadnextcloud-server-1d7bf328f8e3bbcd082b808825d435f88b9e484e.tar.gz
nextcloud-server-1d7bf328f8e3bbcd082b808825d435f88b9e484e.zip
Make possible to provide "--tags=XXX" parameter to Behat
"--tags=XXX" limits the features or scenarios to be run to those matching the tag filter expression. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'build/integration')
-rwxr-xr-xbuild/integration/run.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/integration/run.sh b/build/integration/run.sh
index 45c2bcdaf2b..b747bb52c6b 100755
--- a/build/integration/run.sh
+++ b/build/integration/run.sh
@@ -2,6 +2,12 @@
OC_PATH=../../
OCC=${OC_PATH}occ
+TAGS=""
+if [ "$1" = "--tags" ]; then
+ TAGS="--tags=$2"
+
+ shift 2
+fi
SCENARIO_TO_RUN=$1
HIDE_OC_LOGS=$2
@@ -52,7 +58,7 @@ if [ "$INSTALLED" == "true" ]; then
fi
-vendor/bin/behat --strict -f junit -f pretty $SCENARIO_TO_RUN
+vendor/bin/behat --strict -f junit -f pretty $TAGS $SCENARIO_TO_RUN
RESULT=$?
kill $PHPPID