Lines Matching full:failure
81 # that copies out successfully before failure in Group #1.
253 def test_bitmap_sync(bsync_mode, msync_mode='bitmap', failure=None): argument
264 Bitmaps are always synchronized, regardless of failure.
273 :param failure: Is the (optional) failure mode, and can be any of:
274 - None: No failure. Test the normative path. Default.
287 preposition = "with" if failure else "without"
289 "{:s} failure".format(failure) if failure
290 else "failure")
304 if failure == 'intermediate':
350 # 1 - Test Backup (w/ Optional induced failure)
351 if failure == 'intermediate':
352 # Activate blkdebug induced failure for second-to-next read
360 # Note: when `failure` is 'intermediate', this isn't called.
374 if ((bsync_mode == 'on-success' and not failure) or
381 cancel=(failure == 'simulated'))
386 if bsync_mode == 'always' and failure == 'intermediate':
408 # 2 - Bitmap Backup (In failure modes, this is a recovery.)
432 expected_match=failure != 'intermediate')
433 if not failure or bsync_mode == 'always':
449 log("\n=== API failure tests ===\n")
520 for failure in ("simulated", "intermediate", None):
521 test_bitmap_sync(bsync_mode, "bitmap", failure)
525 for failure in ('simulated', 'intermediate', None):
526 test_bitmap_sync(bsync_mode, sync_mode, failure)