]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: tc-testing: preserve list order when removing duplicates
authorNaveen Anandhan <mr.navi8680@gmail.com>
Sun, 22 Feb 2026 09:55:36 +0000 (15:25 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Feb 2026 11:27:33 +0000 (12:27 +0100)
commit8ac768bb198ccdb1b6dde4bb3616a115642de65c
tree745035a87f3942850884725d9603a7f7f80686ca
parentf77c7b96014471f2c39823ed9fcb42967e7d9ede
selftests: tc-testing: preserve list order when removing duplicates

Using set() removes duplicates but breaks ordering.
Test output should be deterministic, so replace with dict.fromkeys().

Signed-off-by: Naveen Anandhan <mr.navi8680@gmail.com>
Link: https://patch.msgid.link/20260222095536.17371-1-mr.navi8680@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/tc-testing/tdc_helper.py