ethernet-parser.py: fix corner case
When the number of expected ethernet interfaces is greater than the number
actually found, the `result' variable is used without being defined, which
leads to a crash. Make sure to define it in all cases.
Also, Add a corresponding unit test.
While at it, fix a log message and tune ethernet parser unit test printing.
Signed-off-by:
Vincent Stehlé <vincent.stehle@arm.com>
parent
21bd4ab7
Loading
Loading
Pipeline
#7721
passed
with stage
in
2 minutes and 28 seconds
Loading
Please register or sign in to comment