Skip to content

Commit 27a366f

Browse files
authored
Merge pull request #4072 from nanli1/add_support_for_data_file_property
add support for data file properity in get_image_info function
2 parents 765393b + 13a9765 commit 27a366f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

virttest/utils_misc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2944,6 +2944,9 @@ def get_image_info(image_file):
29442944
elif line.find("extended l2") != -1:
29452945
extended_l2 = line.split(":")[-1].strip()
29462946
image_info_dict["extended l2"] = extended_l2
2947+
elif line.find("data file:") != -1:
2948+
data_file = line.split(":")[-1].strip()
2949+
image_info_dict["data file"] = data_file
29472950
return image_info_dict
29482951
except (KeyError, IndexError, process.CmdError) as detail:
29492952
raise exceptions.TestError(

0 commit comments

Comments
 (0)