/[jscoverage]/trunk/tests/server-shutdown.sh
ViewVC logotype

Diff of /trunk/tests/server-shutdown.sh

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

revision 125 by siliconforks, Sat May 31 21:39:39 2008 UTC revision 126 by siliconforks, Mon Jun 2 17:53:43 2008 UTC
# Line 19  Line 19 
19  set -e  set -e
20    
21  function cleanup() {  function cleanup() {
22    kill $python_server_pid    kill -9 $origin_server_pid
23  }  }
24    
25  trap 'cleanup' 0 1 2 3 15  trap 'cleanup' 0 1 2 3 15
# Line 33  Line 33 
33    delay=2    delay=2
34  fi  fi
35    
36  python POSTServer.py > OUT 2> ERR &  perl server.pl > OUT 2> ERR &
37  python_server_pid=$!  origin_server_pid=$!
38    
39  sleep $delay  sleep $delay
40    
41  $VALGRIND jscoverage-server --port 8000 --shutdown  $VALGRIND jscoverage-server --port 8000 --shutdown
42  cat ERR | cut -d'"' -f2 | diff server-shutdown.expected.err -  cat ERR | cut -d'"' -f2 | diff --strip-trailing-cr server-shutdown.expected.err -

Legend:
Removed from v.125  
changed lines
  Added in v.126

  ViewVC Help
Powered by ViewVC 1.1.24