Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add log_file to console xml #3717

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

nanli1
Copy link
Contributor

@nanli1 nanli1 commented Jul 12, 2023

log_file needs to be added
Signed-off-by: nanli [email protected]

for autotest/tp-libvirt#4966

@nanli1
Copy link
Contributor Author

nanli1 commented Jul 17, 2023

@dzhengfy Hi Dzheng ,Could you help review

@@ -26,6 +26,8 @@ def __init__(self, type_name='pty', virsh_instance=base.virsh):
has_subclass=True)
accessors.XMLElementDict('alias', self, parent_xpath='/',
tag_name='alias')
accessors.XMLElementDict('log_file', self, parent_xpath='/',
Copy link
Contributor

Choose a reason for hiding this comment

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

According to the log definition in libvirt.org, I think it is better to use log instead of log_file, because it also include other attributes, like append. What do you think?

<log file="/var/log/libvirt/qemu/guestname-serial0.log" append="off"/>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi dzheng, Thanks your reminder ,Done

  log tag needs to be added
Signed-off-by: nanli <[email protected]>
@dzhengfy
Copy link
Contributor

@nanli1 tp-libvirt seems need update accordingly

@dzhengfy dzhengfy merged commit 07f72ff into avocado-framework:master Jul 26, 2023
49 checks passed
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.

2 participants