-
Notifications
You must be signed in to change notification settings - Fork 242
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:remove -c=never for ip cmdline #4019
base: master
Are you sure you want to change the base?
Conversation
(1/2) Host_RHEL.m8.u10.product_rhel.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.7.9.ppc64le.io-github-autotest-qemu.bigfile_transfer_over_ipv6.remote_addr: STARTED |
(1/1) Host_RHEL.m8.u10.product_rhel.nographic.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.7.9.s390x.io-github-autotest-qemu.qemu_guest_agent.virtio_serial.check_get_interfaces.s390-virtio: STARTED |
This is a regression from #3931, IMO, not all distros need to set this, the color option is not always set during compiling the iproute.
We cannot make sure all distributions built the ip command with |
I think this could work on our side. I'll ask teammates to make sure. Please hold. |
@PaulYuuu my teammates rejected the alias plan. I'm not sure whether this pr will affect our test or not, you could merge it and we'll see what happens. |
instead of using the alias command here, a better way is to execute a non-color command such as "ip addr | xargs". Otherwise, you will have to add more and more alias for each colourful command :) |
They are not better than each other. Redirecting output to PIPE requires modifying everywhere, and newly added functions must ensure that they respect this agreement(including avocado if it has). when |
Could you request them to provide a better solution if they have? We need to consider compatibility but this PR is not enough. Upstream first and then internal, #3931 is to adapt the RHEL10 change, but it introduced regressions for RHEL7 even though RHEL7 is EOL, maybe other distros don't need this but we haven't seen it yet. |
@PaulYuuu I've discussed with teammates, we agreed that you could delete all --color=never , we'll fix the errors in tp-libvirt. |
Signed-off-by: Xujun Ma <[email protected]>
Have removed all -c=never. |
ID:2979
Low version ip command has no this parameter "-c=never"
Remove -c=never,because default output without -c has no color code.