aboutsummaryrefslogtreecommitdiff
path: root/test/boot/vbe_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/boot/vbe_simple.c')
-rw-r--r--test/boot/vbe_simple.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/boot/vbe_simple.c b/test/boot/vbe_simple.c
index faba9e8f90..5e61840652 100644
--- a/test/boot/vbe_simple.c
+++ b/test/boot/vbe_simple.c
@@ -16,7 +16,12 @@
#include <test/ut.h>
#include "bootstd_common.h"
-/* Basic test of reading nvdata and updating a fwupd node in the device tree */
+/*
+ * Basic test of reading nvdata and updating a fwupd node in the device tree
+ *
+ * This sets up its own VBE info in the device, using bootstd_setup_for_tests()
+ * then does a VBE fixup and checks that everything is present.
+ */
static int vbe_simple_test_base(struct unit_test_state *uts)
{
const char *version, *bl_version;
@@ -77,7 +82,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;
}