Skip to content

Commit

Permalink
fixup! Test workflow restarting the device with a sub-command
Browse files Browse the repository at this point in the history
  • Loading branch information
didier-wenzek committed Apr 11, 2024
1 parent 36eb228 commit 9372191
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Trigger Device Restart
Trigger Device Restart Using A Sub-Command
${pid_before}= Execute Command sudo systemctl show --property MainPID tedge-agent
Execute Command tedge mqtt pub --retain te/device/main///cmd/restart_sub_command/robot-314 '{"status":"init"}'
Should Have MQTT Messages te/device/main///cmd/restart_sub_command/robot-314 message_pattern=.*successful.* maximum=1 timeout=300
Should Have MQTT Messages te/device/main///cmd/restart_sub_command/robot-314 message_pattern=.*successful.* maximum=1 timeout=400
${pid_after}= Execute Command sudo systemctl show --property MainPID tedge-agent
Should Not Be Equal ${pid_before} ${pid_after} msg=tedge-agent should have been restarted

Expand Down

0 comments on commit 9372191

Please sign in to comment.