Skip to content

utils_disk: fix the verbose value in umount function#4097

Closed
hellohellenmao wants to merge 1 commit intoavocado-framework:masterfrom
hellohellenmao:3635
Closed

utils_disk: fix the verbose value in umount function#4097
hellohellenmao wants to merge 1 commit intoavocado-framework:masterfrom
hellohellenmao:3635

Conversation

@hellohellenmao
Copy link
Copy Markdown
Contributor

The available value for verbose in this fuction is a bool, but not 'verbose'

ID: 3635

@hellohellenmao
Copy link
Copy Markdown
Contributor Author

@YongxueHong @zhencliu Could you please help to take a review here? Thanks

Comment thread virttest/utils_disk.py Outdated
Need the verbose for debugging

Signed-off-by: Tingting Mao <timao@redhat.com>
@hellohellenmao
Copy link
Copy Markdown
Contributor Author

@YongxueHong @zhencliu Updated with thanks, and could you please help to review again?

Comment thread virttest/utils_disk.py
return process.system(cmd, verbose=verbose) == 0


def umount(src, dst, fstype=None, verbose=False, session=None):
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @hellohellenmao
I suggest that you could customize the argument for the test case, rather than change the default here since this change will affect the previous behaviors and we need to involve more reviewers to evaluate it.
In order to reduce the influence and satisfy your requirements, I suggest specifying verbose=True in your scenario.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, make sense. Will close this PR, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants