Forgot to include the output log of a direct execution :
[root@fedora lldpd]# python tests/miscellaneous-tests/lldpd-tests.py
test_lldpd_trasmitted_lldp_attributes (__main__.lldpdTests)
verify at the other end of veth received LLDP packets that contains attibutes (link address, hostname, TTL, system desc). tcpdump ... reading from file /tmp/lldpd-tcp-dump.pcap, link-type EN10MB (Ethernet), snapshot length 262144
dropped privs to tcpdump
ok
test_lldpd_trasmitted_lldp_packets (__main__.lldpdTests)
verify at the other end of veth ifname lldpd has received LLDP packets. tcpdump ... reading from file /tmp/lldpd-tcp-dump.pcap, link-type EN10MB (Ethernet), snapshot length 262144
dropped privs to tcpdump
ok
test_lldpd_received_lldp_packets_sent_by_systemd_networkd (__main__.lldpdTestsViaNetworkd) ... ok
test_systemd_networkd_received_lldp_packets (__main__.lldpdTestsViaNetworkd) ... ok
----------------------------------------------------------------------
Ran 4 tests in 63.473s
OK
Also, the ansible log with -vvv (just the test stderr):
"stderr_lines": [
":: [ 21:43:57 ] :: [ WARNING ] :: POSIX mode detected and switched off",
":: [ 21:43:57 ] :: [ WARNING ] :: Please fix your test to have /bin/bash shebang",
"",
"::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::",
":: Setup",
"::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::",
"",
":: [ 21:43:57 ] :: [ PASS ] :: Checking for the presence of lldpd rpm ",
":: [ 21:43:57 ] :: [ LOG ] :: Package versions:",
":: [ 21:43:57 ] :: [ LOG ] :: lldpd-1.0.13-1.fc36.x86_64",
":: [ 21:43:58 ] :: [ BEGIN ] :: Running 'cp lldpd-tests.py /usr/bin/'",
":: [ 21:43:58 ] :: [ PASS ] :: Command 'cp lldpd-tests.py /usr/bin/' (Expected 0, got 0)",
"::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::",
":: Duration: 1s",
":: Assertions: 2 good, 0 bad",
":: RESULT: PASS (Setup)",
"",
"",
"::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::",
":: Test",
"::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::",
"",
":: [ 21:43:58 ] :: [ LOG ] :: lladpd tests",
":: [ 21:43:58 ] :: [ BEGIN ] :: Running '/usr/bin/python3 /usr/bin/lldpd-tests.py'",
"reading from file /tmp/lldpd-tcp-dump.pcap, link-type EN10MB (Ethernet), snapshot length 262144",
"dropped privs to tcpdump",
"reading from file /tmp/lldpd-tcp-dump.pcap, link-type EN10MB (Ethernet), snapshot length 262144",
"dropped privs to tcpdump",
":: [ 21:45:01 ] :: [ PASS ] :: Command '/usr/bin/python3 /usr/bin/lldpd-tests.py' (Expected 0, got 0)",
"::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::",
":: Duration: 63s",
":: Assertions: 1 good, 0 bad",
":: RESULT: PASS (Test)",
"",
"",
"::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::",
":: Cleanup",
"::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::",
"",
":: [ 21:45:01 ] :: [ BEGIN ] :: Running 'rm /usr/bin/lldpd-tests.py'",
":: [ 21:45:01 ] :: [ PASS ] :: Command 'rm /usr/bin/lldpd-tests.py' (Expected 0, got 0)",
":: [ 21:45:01 ] :: [ LOG ] :: lladpd tests done",
"::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::",
":: Duration: 0s",
":: Assertions: 1 good, 0 bad",
":: RESULT: PASS (Cleanup)",
"",
":: [ 21:45:01 ] :: [ LOG ] :: JOURNAL XML: /var/tmp/beakerlib-vWlJfli/journal.xml",
":: [ 21:45:01 ] :: [ LOG ] :: JOURNAL TXT: /var/tmp/beakerlib-vWlJfli/journal.txt",
"::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::",
":: Duration: 64s",
":: Phases: 3 good, 0 bad",
":: OVERALL RESULT: PASS (unknown)",
"",
"Run test '': done. Test's exit code: 0"
],