Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check init state via serial connection #65

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Robot-Framework/resources/serial_keywords.resource
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ Verify init.scope status via serial
Write Data systemctl status init.scope${\n}
${output} = SerialLibrary.Read Until terminator=Units
Write Data \x03${\n} # write ctrl+c to stop reading status
${status}= Get Service Status ${output}
IF '${status}' not in ['running', 'starting']
${status} ${state} Get Service Status ${output}
IF '${state}' not in ['running', 'starting']
Log To Console init.scope status is ${status}
FAIL init.scope is not running! Status is ${status}
ELSE IF '${status}' == 'running'
FAIL init.scope is not running! Status is ${state}
ELSE IF '${state}' == 'running'
${diff}= Evaluate int(time.time()) - int(${start_time})
Log To Console init.scope status is ${status}
RETURN
Expand Down