Skip to content

Commit

Permalink
Merge pull request avocado-framework#3164 from yanan-fu/luks_F
Browse files Browse the repository at this point in the history
qemu_storage: require -F with -b backing image
  • Loading branch information
YongxueHong authored Aug 11, 2021
2 parents 455c7f9 + 553bf05 commit 332722d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions virttest/qemu_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,7 @@ def create(self, params, ignore_errors=False):
self.root_dir)
else:
cmd_dict["backing_file"] = self.base_image_filename
if self.base_format:
cmd_dict["backing_format"] = self.base_format
cmd_dict["backing_format"] = self.base_format

# secret objects of the backing images
secret_objects = self._backing_access_secret_objects
Expand Down Expand Up @@ -975,7 +974,7 @@ def rebase(self, params, cache_mode=None, source_cache_mode=None):
base_image.tag, base_image.params, base_image.root_dir)
else:
cmd_dict["backing_file"] = base_image.image_filename
cmd_dict["backing_format"] = base_image.image_format
cmd_dict["backing_format"] = base_image.image_format
else:
raise exceptions.TestError("Can not find the image parameters need"
" for rebase.")
Expand Down

0 comments on commit 332722d

Please sign in to comment.