This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 83a5ac5  Cleanup mango test runner script
83a5ac5 is described below

commit 83a5ac5b358a7a8b32ed092ddde32c2676859bb1
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Wed Aug 23 12:30:21 2017 -0400

    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
---
 test/build/test-run-couch-for-mango.sh | 6 +++---
 1 file 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 3decdec..6034a79 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

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to