Skip to content
Commit 89795ef3 authored by Marek Behún's avatar Marek Behún Committed by Tom Rini
Browse files

test/py: Improve check for mksquashfs version



Some builds of squashfs-tools append version string with "-git" or
similar. The float() conversion will fail in this case.

Improve the code to only convert to float() the string before the '-'
character.

Signed-off-by: default avatarMarek Behún <marek.behun@nic.cz>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarJoao Marcos Costa <jmcosta944@gmail.com>
parent ff7852d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment