--- trunk/tests/store-source-not-found.sh 2008/05/31 21:39:39 114 +++ trunk/tests/store-source-not-found.sh 2008/10/23 20:10:48 337 @@ -18,12 +18,14 @@ set -e -function shutdown() { +. common.sh + +shutdown() { wget -q -O- --post-data= "http://127.0.0.1:${server_port}/jscoverage-shutdown" > /dev/null wait $server_pid } -function cleanup() { +cleanup() { shutdown } @@ -46,5 +48,5 @@ sleep $delay wget --post-file=store-source-not-found.json -q -O- http://127.0.0.1:8080/jscoverage-store > /dev/null -js json-cmp.js store-source-not-found.expected.json DIR/jscoverage.json -diff store-source-not-found.expected.err ERR +json_cmp store-source-not-found.expected.json DIR/jscoverage.json +diff --strip-trailing-cr store-source-not-found.expected.err ERR