Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions py/strato/whiteboxtest/infra/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,16 @@ def TS_ASSERT_PREDICATE_TIMEOUT(predicate, * args, ** kwargs):
try:
if predicate(* args, ** kwargs):
_successful_TS_ASSERT_Count += 1
logging.info("Done waiting for predicate %s after %s secs",
predicate, str(time.time() - before))
return
else:
time.sleep(interval)
except:
time.sleep(interval)
if predicate(* args, ** kwargs):
_successful_TS_ASSERT_Count += 1
logging.info("Predicate %s succeed just in timeout", predicate)
return
else:
raiseAssert("TS_ASSERT_PREDICATE_TIMEOUT failed: %s" % predicate)
Expand Down
2 changes: 1 addition & 1 deletion py/strato/whiteboxtest/runner/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from strato.whiteboxtest.runner import config
from strato.common.log import configurelogging
configurelogging.configureLogging('whiteboxtest.runner', forceDirectory=config.TEST_LOGS_DIR)
configurelogging.configureLogging('whiteboxtest.runner', forceDirectory=config.TEST_LOGS_DIR) # noqa
import logging
import argparse
import sys
Expand Down