Mercurial > hg
comparison tests/test-treediscovery.t @ 20426:00f2d29308db
tests: test that the pid returned by `hg serve` looks reasonable
This failed on windows before win32.spawndetached has been fixed. The process
name was "cmd.exe" and not "hg.exe" or "python.exe".
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Sun, 09 Feb 2014 00:26:01 +0100 |
parents | aa9385f983fa |
children | 0e2877f8605d |
comparison
equal
deleted
inserted
replaced
20425:ca6aa8362f33 | 20426:00f2d29308db |
---|---|
27 Both are empty: | 27 Both are empty: |
28 | 28 |
29 $ hg init empty1 | 29 $ hg init empty1 |
30 $ hg init empty2 | 30 $ hg init empty2 |
31 $ tstart empty2 | 31 $ tstart empty2 |
32 check if process of pid looks reasonable ('hg' normally, 'python' for run-tests.py -l) | |
33 #if windows | |
34 ps of mingw does not support -p, tasklist is on any windows machine since XP | |
35 $ tasklist //NH //fi "pid eq `cat hg.pid`" | grep ' ' | |
36 (.* )?(hg|python)\.exe( .*)? (re) | |
37 #else | |
38 $ ps --no-heading -p `cat hg.pid` | |
39 (.* )?(hg|python)( .*)? (re) | |
40 #endif | |
32 $ hg incoming -R empty1 $remote | 41 $ hg incoming -R empty1 $remote |
33 comparing with http://localhost:$HGPORT/ | 42 comparing with http://localhost:$HGPORT/ |
34 no changes found | 43 no changes found |
35 [1] | 44 [1] |
36 $ hg outgoing -R empty1 $remote | 45 $ hg outgoing -R empty1 $remote |