File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ Stop Remote Server
9
9
10
10
SIGINT
11
11
Skip On Windows
12
- Send Signal To Process SIGINT
12
+ Send Signal To Remote Server SIGINT
13
13
14
14
SIGHUP
15
15
Skip On Windows
16
- Send Signal To Process SIGHUP
16
+ Send Signal To Remote Server SIGHUP
17
17
18
18
SIGTERM
19
19
Skip On Windows
20
- Send Signal To Process SIGTERM
20
+ Send Signal To Remote Server SIGTERM
21
21
22
22
*** Keywords ***
23
23
Start Server
@@ -36,3 +36,8 @@ Server Should Be Stopped
36
36
37
37
Skip On Windows
38
38
Run Keyword If "${: } " == ";" Fail Skipped on Windows skip
39
+
40
+ Send Signal To Remote Server
41
+ [Arguments] ${signal }
42
+ ${process pid } = Run Keyword ${TEST NAME } .get_pid
43
+ Evaluate os.kill(${process pid } , signal.${signal } ) os,signal
Original file line number Diff line number Diff line change
1
+ import os
2
+
3
+
1
4
class BasicCommunication (object ):
2
5
"""Testing basic communication and keyword documentation."""
3
6
@@ -8,6 +11,12 @@ def passing(self):
8
11
"""
9
12
pass
10
13
14
+ def get_pid (self ):
15
+ """
16
+ Returns process id for the remote server that is serving this library.
17
+ """
18
+ return os .getpid ()
19
+
11
20
def failing (self , message ):
12
21
"""This keyword fails with provided `message`"""
13
22
raise AssertionError (message )
You can’t perform that action at this time.
0 commit comments