File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
tests/RobotFramework/tests/configuration Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ Check PID number in lock file
28
28
Check PID number in lock file after restarting the services
29
29
[Documentation] Include the new pid generated after service restart
30
30
... inside the existing lock files under /run/lock/
31
- Restart Service tedge-agent
32
- Restart Service tedge-mapper-c8y
31
+ Stop/Start Service tedge-agent
32
+ Stop/Start Service tedge-mapper-c8y
33
33
${pid_agent2 } = Execute Command pgrep -f '^/usr/bin/tedge-agent' strip=True
34
34
${pid_mapper2 } = Execute Command pgrep -f '^/usr/bin/tedge-mapper c8y' strip=${True }
35
35
${pid_agent_lock2 } = Execute Command cat /run/lock/tedge-agent.lock
@@ -61,3 +61,13 @@ Switch off lock file creation
61
61
#Check that no lock file is created
62
62
File Should Not Exist /run/lock/tedge-agent.lock
63
63
File Should Not Exist /run/lock/tedge-mapper-c8y.lock
64
+
65
+ *** Keywords ***
66
+
67
+ Stop/Start Service
68
+ [Arguments] ${name }
69
+ # Note: Use stop/start service rather than restart as 'systemctl restart <service>'
70
+ # does not wait for all file descriptors to be flushed before returning, https://man7.org/linux/man-pages/man1/systemctl.1.html
71
+ # See https://github.com/thin-edge/thin-edge.io/issues/2087 for more details
72
+ Stop Service ${name }
73
+ Start Service ${name }
You can’t perform that action at this time.
0 commit comments