Skip to content
Commit c19b25bc authored by Vincent Stehle's avatar Vincent Stehle
Browse files

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 Stehle's avatarVincent Stehlé <vincent.stehle@arm.com>
parent 21bd4ab7
Loading
Loading
Loading
Pipeline #7721 passed with stage
in 2 minutes and 28 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment