tests/test-serve.t
branchstable
changeset 37156 7de7bd407251
parent 31771 5e92ba77793c
child 37846 89793289c891
equal deleted inserted replaced
36981:177f3b90335f 37156:7de7bd407251
    76 
    76 
    77   $ hgserve --prefix /foo/
    77   $ hgserve --prefix /foo/
    78   listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob) (?)
    78   listening at http://localhost/foo/ (bound to *$LOCALIP*:HGPORT1) (glob) (?)
    79   % errors
    79   % errors
    80 
    80 
       
    81   $ $PYTHON $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
       
    82 
       
    83 With out of bounds accesses
       
    84 
       
    85   $ rm access.log
       
    86   $ hg serve -a localhost -p $HGPORT -d --prefix some/dir \
       
    87   >    --pid-file=hg.pid -E errors.log
       
    88   $ cat hg.pid >> "$DAEMON_PIDS"
       
    89 
       
    90   $ hg id http://localhost:$HGPORT/some/dir7
       
    91   abort: HTTP Error 404: Not Found
       
    92   [255]
       
    93   $ hg id http://localhost:$HGPORT/some
       
    94   abort: HTTP Error 404: Not Found
       
    95   [255]
       
    96 
       
    97   $ cat access.log errors.log
       
    98   $LOCALIP - - [$LOGDATE$] "GET /some/dir7?cmd=capabilities HTTP/1.1" 404 - (glob)
       
    99   $LOCALIP - - [$LOGDATE$] "GET /some?cmd=capabilities HTTP/1.1" 404 - (glob)
       
   100 
    81   $ cd ..
   101   $ cd ..