comparison tests/test-serve @ 12403:ba8850911703

test-serve: fix test for binding to low named port on solaris Solaris do not know the service called http, so we use echo instead. Trying to define KILLQUIETLY when running the hgserve function didn't set the value within the function. Now we set the variable before calling the function.
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 25 Sep 2010 02:35:32 +0200
parents b6cc68ef2702
children fdb0983ad395
comparison
equal deleted inserted replaced
12402:b014f998959d 12403:ba8850911703
38 hgserve 38 hgserve
39 39
40 echo % With -v and -p HGPORT2 40 echo % With -v and -p HGPORT2
41 hgserve -p "$HGPORT2" 41 hgserve -p "$HGPORT2"
42 42
43 echo '% With -v and -p http (should fail)' 43 echo '% With -v and -p echo (should fail because low port)'
44 KILLQUIETLY=Y hgserve -p http; KILLQUIETLY=N 44 KILLQUIETLY=Y
45 hgserve -p echo
46 KILLQUIETLY=N
45 47
46 echo % With --prefix foo 48 echo % With --prefix foo
47 hgserve --prefix foo 49 hgserve --prefix foo
48 50
49 echo % With --prefix /foo 51 echo % With --prefix /foo