Add active wait function 03/58803/4
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 19 Apr 2018 13:58:38 +0000 (14:58 +0100)
committerEmma Foley <emma.l.foley@intel.com>
Fri, 22 Jun 2018 17:38:15 +0000 (17:38 +0000)
commit745db76a4cc99a1597a3570ecdc063d549839a15
tree2cf4cc77089632d9b6e9e2fdd65bea293f30a891
parent2c77f9d9559b09299f8ef5cc3d07c847c685d79c
Add active wait function

Added function "wait_until_true". This function will make an active
wait until the predicate passed as an argument returns True.

If the timeout expires, the function will raise a generic exception
or a user defined one passed as an argument.

This function will be used in YARDSTICK-1127.

JIRA: YARDSTICK-1128

Change-Id: I9854e465ac6b586bf4be39ab4b266d5625b39e30
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
(cherry picked from 099108aab37d1fae1b27f4e2e20136c234df1a52)
yardstick/common/exceptions.py
yardstick/common/utils.py
yardstick/tests/unit/common/test_utils.py