Skip to content

Commit

Permalink
pyocf: composite volume tests
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
  • Loading branch information
Adam Rutkowski authored and Jan Musial committed Jun 29, 2022
1 parent 8139668 commit 69ef673
Show file tree
Hide file tree
Showing 2 changed files with 417 additions and 52 deletions.
4 changes: 2 additions & 2 deletions tests/functional/pyocf/types/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,13 @@ def do_submit_io(self, io):
self.complete_with_error(io)

def do_submit_flush(self, flush):
if self.data_only and self.should_forward_io(flush):
if self.data_only or self.should_forward_io(flush):
self.vol.do_submit_flush(flush)
else:
self.complete_with_error(flush)

def do_submit_discard(self, discard):
if self.data_only and self.should_forward_io(discard):
if self.data_only or self.should_forward_io(discard):
self.vol.do_submit_discard(discard)
else:
self.complete_with_error(discard)
Expand Down
Loading

0 comments on commit 69ef673

Please sign in to comment.