ifw-fcf  5.0.0-pre2
Functions
wait_for_cond Namespace Reference

Functions

def wait_for_cond (id, cmd_line, poll_rate, timeout, expected_res_stdout, debug_log=False)
 Wait for the specified command, executed on the shell, with the given polling rate, to return a specific result. More...
 

Function Documentation

◆ wait_for_cond()

def wait_for_cond.wait_for_cond (   id,
  cmd_line,
  poll_rate,
  timeout,
  expected_res_stdout,
  debug_log = False 
)

Wait for the specified command, executed on the shell, with the given polling rate, to return a specific result.

The check if the condition is obtained, is when "<stdout>.find(expected_res_stdout)" is true. Returns "OK" if the condition was fullfilled within the given period of time, otherwise "NOK".