| Index: common/py_utils/py_utils/__init__.py
|
| diff --git a/common/py_utils/py_utils/__init__.py b/common/py_utils/py_utils/__init__.py
|
| index fb662bc4bb8b3473256d499767fe821435f65bd8..3f2631197a7133daaa059b9b098b3cac35a94cd9 100644
|
| --- a/common/py_utils/py_utils/__init__.py
|
| +++ b/common/py_utils/py_utils/__init__.py
|
| @@ -109,6 +109,10 @@ def WaitFor(condition, timeout):
|
| pass
|
| return condition.__name__
|
|
|
| + # Do an initial check to see if its true.
|
| + res = condition()
|
| + if res:
|
| + return res
|
| start_time = time.time()
|
| last_output_time = start_time
|
| elapsed_time = time.time() - start_time
|
|
|