summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-05-07 21:36:19 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-05-07 21:36:19 +0200
commit632898d27373cfc0a4ecbbcf34ded396af1727bc (patch)
tree3d12e2a60e7775f7894fa4b1c052cc327a0943fd /tests
parente83462f7649aa92f7d2823e493a791184ff9c168 (diff)
make host configurable
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/run.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/acceptance/run.sh b/tests/acceptance/run.sh
index 33d7b3cf9..8933c44cb 100644
--- a/tests/acceptance/run.sh
+++ b/tests/acceptance/run.sh
@@ -71,5 +71,12 @@ fi
rvm install 2.0.0
rvm use ruby-2.0.0@oc_acceptance --create
+# install dep libraries
bundle install
-cucumber -f json -o ./logs/owncloud.json -f pretty HOST=localhost/owncloud features \ No newline at end of file
+
+# if the OWNCLOUD_HOST variable is not set it will default to localhost/owncloud
+if [[ -z "$OWNCLOUD_HOST" ]]; then
+ export OWNCLOUD_HOST='localhost/owncloud'
+fi
+
+cucumber -f json -o ./logs/owncloud.json -f pretty HOST=$OWNCLOUD_HOST features \ No newline at end of file