projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
7225: ArvadosFile.flush() commits all underlying blocks.
[arvados.git]
/
sdk
/
python
/
tests
/
run_test_server.py
diff --git
a/sdk/python/tests/run_test_server.py
b/sdk/python/tests/run_test_server.py
index 31493cc10ad534989ab1efeb83a661a23bd69b92..1c5162b97d87e476b9ff3badc82ffce3afdd4d28 100644
(file)
--- a/
sdk/python/tests/run_test_server.py
+++ b/
sdk/python/tests/run_test_server.py
@@
-122,16
+122,17
@@
def _wait_until_port_listens(port, timeout=10):
in seconds), print a warning on stderr before returning.
"""
try:
in seconds), print a warning on stderr before returning.
"""
try:
- subprocess.check_output(['
fuser', '-l
'])
+ subprocess.check_output(['
which', 'lsof
'])
except subprocess.CalledProcessError:
except subprocess.CalledProcessError:
- print("WARNING: No `
fuser
` -- cannot wait for port to listen. "+
+ print("WARNING: No `
lsof
` -- cannot wait for port to listen. "+
"Sleeping 0.5 and hoping for the best.")
time.sleep(0.5)
return
deadline = time.time() + timeout
while time.time() < deadline:
try:
"Sleeping 0.5 and hoping for the best.")
time.sleep(0.5)
return
deadline = time.time() + timeout
while time.time() < deadline:
try:
- fuser_says = subprocess.check_output(['fuser', str(port)+'/tcp'])
+ subprocess.check_output(
+ ['lsof', '-t', '-i', 'tcp:'+str(port)])
except subprocess.CalledProcessError:
time.sleep(0.1)
continue
except subprocess.CalledProcessError:
time.sleep(0.1)
continue