summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Dionne <bitdiddle@apache.org>2012-01-08 15:41:54 -0500
committerBob Dionne <bitdiddle@apache.org>2012-01-08 15:41:54 -0500
commit0ebfd22494e9e989d9ea639275823f9f1b368f0d (patch)
treefb8674aab3a5539e98558eba9cef3cd3f6802e89
parentfcd7f804a7cf903aebaebd2793cada278ae59995 (diff)
downloadcouchdb-0ebfd22494e9e989d9ea639275823f9f1b368f0d.tar.gz
Allow test/javascript/run to be run standalone
Some users will incrementally reload a single code module into a running couchdb instance and wish to run the js tests again. This allows test/javascript/run to execute outside of make check by using an env variable COUCHDB_NO_START.
-rw-r--r--test/javascript/run.tpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/javascript/run.tpl b/test/javascript/run.tpl
index caffe49fe..cae5a09e5 100644
--- a/test/javascript/run.tpl
+++ b/test/javascript/run.tpl
@@ -35,7 +35,7 @@ else
fi
fi
-make dev
+
# stop CouchDB on exit from various signals
abort() {
@@ -46,6 +46,7 @@ abort() {
# start CouchDB
if [ -z $COUCHDB_NO_START ]; then
+ make dev
trap 'abort' 0 1 2 3 4 6 8 15
./utils/run -b -r 1
sleep 1 # give it a sec