Skip to content

general - use non_utf8_device for device cleanup and setup

David Jaša requested to merge dj/non-utf-device into master

Fixes failures of dummy_non_utf8_device on el9. The device created by this test didn't get properly cleaned up, now it is.

There was a tag for interface cleanup for dummy_non_utf8_device test - the non_utf8_device tag. It was however unused and it didn't do device set up. After this commit, non-utf8 interface is both set up and cleaned up in before/after scenario using python binding to libnl and interface index. Test itself now only checks valid substring so we don't have to do different checks on el9 and previous releases. I also added console escape codes to the test string inspired by: https://bugzilla.kernel.org/show_bug.cgi?id=206761

PyRoute2's IPRoute() can be also used to speed up tags that set up or clean up hundreds or thousands of devices.

@RunTests:*

Edited by Filip Pokryvka

Merge request reports

Loading