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

utils_net: disable color chars #4060

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dzhengfy
Copy link
Contributor

@dzhengfy dzhengfy commented Feb 6, 2025

The command might output ip address with color characters which will break the script, like below.
Get ipv6 address of vm1: �[34m2620:52:11:1601:982f:7bff:fe94:1415�[0m

This is to disable the color characters in the outputs.

Signed-off-by: Dan Zheng [email protected]

The command might output ip address with color characters which will
break the script, like below.
Get ipv6 address of vm1: �[34m2620:52:11:1601:982f:7bff:fe94:1415�[0m

This is to disable the color characters in the outputs.

Signed-off-by: Dan Zheng <[email protected]>
@dzhengfy
Copy link
Contributor Author

dzhengfy commented Feb 6, 2025

Before the fix:
(1/1) Host_RHEL.m9.u6.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.6.0.aarch64.page_64k.io-github-autotest-qemu.bigfile_transfer_over_ipv6.remote_addr.arm64-pci: ERROR: SCP transfer failed (status: 255, output: 'Executing: program /usr/bin/ssh host \033[34m2620:52:11:1601:9824:20ff:fe54:9207\033[0m, user root, command sftp\nhostname contains invalid characters\nConnection closed\n') (112.42 s)

After the fix:
(1/1) Host_RHEL.m9.u6.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.6.0.aarch64.page_64k.io-github-autotest-qemu.bigfile_transfer_over_ipv6.remote_addr.arm64-pci: PASS (132.35 s)

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.

1 participant