Skip to content

Commit

Permalink
Check init state via serial connection
Browse files Browse the repository at this point in the history
Signed-off-by: Mariia Azbeleva <[email protected]>
  • Loading branch information
azbeleva committed Nov 22, 2023
1 parent 10a08c1 commit 8cafc61
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 8cafc61

Please sign in to comment.