Show More
@@ -4,8 +4,26 b'' | |||
|
4 | 4 | $ LFS_HOST="localhost:$HGPORT" |
|
5 | 5 | $ LFS_PUBLIC=1 |
|
6 | 6 | $ export LFS_LISTEN LFS_HOST LFS_PUBLIC |
|
7 | #if no-windows | |
|
7 | 8 | $ lfs-test-server &> lfs-server.log & |
|
8 | 9 | $ echo $! >> $DAEMON_PIDS |
|
10 | #else | |
|
11 | $ cat >> $TESTTMP/spawn.py <<EOF | |
|
12 | > import os | |
|
13 | > import subprocess | |
|
14 | > import sys | |
|
15 | > | |
|
16 | > for path in os.environ["PATH"].split(os.pathsep): | |
|
17 | > exe = os.path.join(path, 'lfs-test-server.exe') | |
|
18 | > if os.path.exists(exe): | |
|
19 | > with open('lfs-server.log', 'wb') as out: | |
|
20 | > p = subprocess.Popen(exe, stdout=out, stderr=out) | |
|
21 | > sys.stdout.write('%s\n' % p.pid) | |
|
22 | > sys.exit(0) | |
|
23 | > sys.exit(1) | |
|
24 | > EOF | |
|
25 | $ $PYTHON $TESTTMP/spawn.py >> $DAEMON_PIDS | |
|
26 | #endif | |
|
9 | 27 | |
|
10 | 28 | $ cat >> $HGRCPATH <<EOF |
|
11 | 29 | > [extensions] |
@@ -104,3 +122,5 b' Check error message when object does not' | |||
|
104 | 122 | updating to branch default |
|
105 | 123 | abort: LFS server error. Remote object for file data/a.i not found:(.*)! (re) |
|
106 | 124 | [255] |
|
125 | ||
|
126 | $ $PYTHON $RUNTESTDIR/killdaemons.py $DAEMON_PIDS |
General Comments 0
You need to be logged in to leave comments.
Login now