vbe: Drop the U-Boot prefix from the version
We don't need the U-Boot prefix on the version and in fact it is harmful since pytest gets confused seeing the U-Boot banner bring displayed when the version is printed. Drop the prefix from the string. We could produce an entirely new string from the component parts, but this adds to the rodata size and would break the use of version_string as the only thing which holds this information. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -77,7 +77,7 @@ static int vbe_simple_test_base(struct unit_test_state *uts)
|
||||
|
||||
bl_version = ofnode_read_string(node, "bootloader-version");
|
||||
ut_assertnonnull(bl_version);
|
||||
ut_asserteq_str(version_string, bl_version);
|
||||
ut_asserteq_str(version_string + 7, bl_version);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user