Skip to content

Commit db49c69

Browse files
committed
Added . to logged stopping message. Tested starting message.
1 parent 83e7b22 commit db49c69

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

atest/tests/resource.robot

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Start And Import Remote Library
1212
Set Pythonpath
1313
${port} = Start Remote Library ${library}
1414
Import Library Remote http://127.0.0.1:${port}
15+
Set Suite Variable ${ACTIVE PORT} ${port}
1516
Set Log Level DEBUG
1617

1718
Start Remote Library
@@ -36,7 +37,10 @@ Set Pythonpath
3637
Set Environment Variable IRONPYTHONPATH ${src}
3738

3839
Stop Remote Library
39-
[Arguments] ${library}=${NONE}
4040
Stop Remote Server
41-
${result} = Wait For Process ${library} 10s terminate
42-
Log ${result.stdout}
41+
Server Should Be Stopped And Correct Messages Logged
42+
43+
Server Should Be Stopped And Correct Messages Logged
44+
${result} = Wait For Process timeout=10s on_timeout=terminate
45+
Should Be Equal ${result.stdout}
46+
... Robot Framework remote server starting at 127.0.0.1:${ACTIVE PORT}.

src/robotremoteserver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ def serve_forever(self):
8585
def stop_remote_server(self):
8686
prefix = 'Robot Framework remote server at %s:%s ' % self.server_address
8787
if self._allow_stop:
88-
self._log(prefix + 'stopping')
88+
self._log(prefix + 'stopping.')
8989
self._shutdown = True
9090
else:
91-
self._log(prefix + 'does not allow stopping', 'WARN')
91+
self._log(prefix + 'does not allow stopping.', 'WARN')
9292
return True
9393

9494
def get_keyword_names(self):

0 commit comments

Comments
 (0)