/[jscoverage]/trunk/tests/store-unwritable-json.sh
ViewVC logotype

Diff of /trunk/tests/store-unwritable-json.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 181 by siliconforks, Sun Sep 21 18:42:02 2008 UTC revision 366 by siliconforks, Sun Oct 26 21:15:24 2008 UTC
# Line 18  Line 18 
18    
19  set -e  set -e
20    
21    . common.sh
22    
23  shutdown() {  shutdown() {
24    wget -q -O- --post-data= "http://127.0.0.1:${server_port}/jscoverage-shutdown" > /dev/null    wget -q -O- --post-data= "http://127.0.0.1:${server_port}/jscoverage-shutdown" > /dev/null
25    wait $server_pid    wait $server_pid
# Line 29  Line 31 
31    
32  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
33    
 export PATH=.:..:../js:$PATH  
   
34  if [ -z "$VALGRIND" ]  if [ -z "$VALGRIND" ]
35  then  then
36    delay=0.2    delay=0.2
# Line 48  Line 48 
48  cat store.json | sed "s/@PREFIX@/\\//g" > TMP  cat store.json | sed "s/@PREFIX@/\\//g" > TMP
49  wget --post-file=TMP -q -O- http://127.0.0.1:8080/jscoverage-store > /dev/null  wget --post-file=TMP -q -O- http://127.0.0.1:8080/jscoverage-store > /dev/null
50  cat store.expected.json | sed "s/@PREFIX@/\\//g" > TMP  cat store.expected.json | sed "s/@PREFIX@/\\//g" > TMP
51  js json-cmp.js TMP DIR/jscoverage.json  json_cmp TMP DIR/jscoverage.json
52    
53  chmod -w DIR/jscoverage.json  chmod -w DIR/jscoverage.json
54    

Legend:
Removed from v.181  
changed lines
  Added in v.366

  ViewVC Help
Powered by ViewVC 1.1.24