Show More
@@ -197,7 +197,7 def create_server(ui, repo): | |||
|
197 | 197 | |
|
198 | 198 | def openlog(opt, default): |
|
199 | 199 | if opt and opt != '-': |
|
200 |
return open(opt, ' |
|
|
200 | return open(opt, 'a') | |
|
201 | 201 | return default |
|
202 | 202 | |
|
203 | 203 | if repo is None: |
@@ -7,7 +7,7 mkdir da | |||
|
7 | 7 | echo foo > da/foo |
|
8 | 8 | echo foo > foo |
|
9 | 9 | hg ci -Ambase -d '0 0' |
|
10 | hg serve -p $HGPORT -d --pid-file=hg.pid | |
|
10 | hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log | |
|
11 | 11 | cat hg.pid >> $DAEMON_PIDS |
|
12 | 12 | echo % manifest |
|
13 | 13 | ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/?style=raw') |
@@ -28,5 +28,12 echo % should give a 400 - bad command | |||
|
28 | 28 | echo % should give a 404 - file does not exist |
|
29 | 29 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/bork?style=raw' |
|
30 | 30 | |
|
31 | echo % stop and restart | |
|
32 | kill `cat hg.pid` | |
|
33 | hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log | |
|
34 | cat hg.pid >> $DAEMON_PIDS | |
|
35 | # Test the access/error files are opened in append mode | |
|
36 | python -c "print len(file('access.log').readlines()), 'log lines written'" | |
|
37 | ||
|
31 | 38 | echo % static file |
|
32 | 39 | "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/static/style-gitweb.css' |
General Comments 0
You need to be logged in to leave comments.
Login now