summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2017-08-23 12:30:21 -0400
committerNick Vatamaniuc <nickva@users.noreply.github.com>2017-08-23 13:21:15 -0400
commit83a5ac5b358a7a8b32ed092ddde32c2676859bb1 (patch)
treee5799ba938794ba134b442182170b80303e3f436
parente2037dc71ab88c7b036ef5709946b8ff781638b1 (diff)
downloadcouchdb-83a5ac5b358a7a8b32ed092ddde32c2676859bb1.tar.gz
Cleanup mango test runner script
When tests run on Travis they run on Ubuntu where /bin/sh is dash, so bash specific syntax will throw errors. Make script more generic by using [ for tests. Also double quotes as suggested: http://mywiki.wooledge.org/Bashism Also remove a trailing whitespace and fix final newline
-rwxr-xr-xtest/build/test-run-couch-for-mango.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/build/test-run-couch-for-mango.sh b/test/build/test-run-couch-for-mango.sh
index 3decdecbb..6034a794c 100755
--- a/test/build/test-run-couch-for-mango.sh
+++ b/test/build/test-run-couch-for-mango.sh
@@ -15,11 +15,11 @@
export SERVER_PID=$!
sleep 10
curl http://dev:15984
-cd src/mango/
+cd src/mango/
nosetests
EXIT_STATUS=$?
-if [[ ! -z $SERVER_PID ]]; then
+if [ ! -z "$SERVER_PID" ]; then
kill $SERVER_PID
fi
-exit $EXIT_STATUS \ No newline at end of file
+exit $EXIT_STATUS