Commit c5f9f0a8 authored by Aaron Barnes's avatar Aaron Barnes
Browse files

test/behat/mahara_behat.sh: Script updates to work better with Jenkins



Namely, quit on error and do not force ansi output

Change-Id: Ic6eed4e012ec986600a8db09518be7f2c9b2ef86
Signed-off-by: default avatarAaron Barnes <aaronb@catalyst.net.nz>
parent 2422dd9d
#!/bin/bash
# Quit on error
set -e
function is_selenium_running {
res=$(curl -o /dev/null --silent --write-out '%{http_code}\n' http://localhost:4444/wd/hub/status)
if [[ $res == "200" ]]; then
......@@ -92,9 +95,9 @@ then
if [ "$TAGS" ]
then
./external/vendor/bin/behat --config $BEHATCONFIGFILE --ansi --tags $TAGS
./external/vendor/bin/behat --config $BEHATCONFIGFILE --tags $TAGS
else
./external/vendor/bin/behat --config $BEHATCONFIGFILE --ansi
./external/vendor/bin/behat --config $BEHATCONFIGFILE
fi
echo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment