diff options
author | Bob Dionne <bitdiddle@apache.org> | 2012-01-08 15:41:54 -0500 |
---|---|---|
committer | Bob Dionne <bitdiddle@apache.org> | 2012-01-08 15:41:54 -0500 |
commit | 0ebfd22494e9e989d9ea639275823f9f1b368f0d (patch) | |
tree | fb8674aab3a5539e98558eba9cef3cd3f6802e89 | |
parent | fcd7f804a7cf903aebaebd2793cada278ae59995 (diff) | |
download | couchdb-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.tpl | 3 |
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 |