mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
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.
This commit is contained in:
parent
a1632cd61b
commit
ed06ff3f48
@ -40,8 +40,10 @@ hgserve
|
||||
echo % With -v and -p HGPORT2
|
||||
hgserve -p "$HGPORT2"
|
||||
|
||||
echo '% With -v and -p http (should fail)'
|
||||
KILLQUIETLY=Y hgserve -p http; KILLQUIETLY=N
|
||||
echo '% With -v and -p echo (should fail because low port)'
|
||||
KILLQUIETLY=Y
|
||||
hgserve -p echo
|
||||
KILLQUIETLY=N
|
||||
|
||||
echo % With --prefix foo
|
||||
hgserve --prefix foo
|
||||
|
@ -7,8 +7,8 @@ listening at http://localhost/ (bound to 127.0.0.1:HGPORT1)
|
||||
% With -v and -p HGPORT2
|
||||
listening at http://localhost/ (bound to 127.0.0.1:HGPORT2)
|
||||
% errors
|
||||
% With -v and -p http (should fail)
|
||||
abort: cannot start server at 'localhost:80': Permission denied
|
||||
% With -v and -p echo (should fail because low port)
|
||||
abort: cannot start server at 'localhost:7': Permission denied
|
||||
abort: child process failed to start
|
||||
% errors
|
||||
% With --prefix foo
|
||||
|
Loading…
Reference in New Issue
Block a user