tests/test-hgweb.t
changeset 48970 9987d14ad63f
parent 46690 6fc57680cfd6
child 50722 7e5be4a7cda7
equal deleted inserted replaced
48969:0583d7f0fdff 48970:9987d14ad63f
   327   $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
   327   $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log
   328   $ cat hg.pid >> $DAEMON_PIDS
   328   $ cat hg.pid >> $DAEMON_PIDS
   329 
   329 
   330 Test the access/error files are opened in append mode
   330 Test the access/error files are opened in append mode
   331 
   331 
   332   $ "$PYTHON" -c "from __future__ import print_function; print(len(open('access.log', 'rb').readlines()), 'log lines written')"
   332   $ "$PYTHON" -c "print(len(open('access.log', 'rb').readlines()), 'log lines written')"
   333   14 log lines written
   333   14 log lines written
   334 
   334 
   335 static file
   335 static file
   336 
   336 
   337   $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server
   337   $ get-with-headers.py --twice localhost:$HGPORT 'static/style-gitweb.css' - date etag server