Fix decoding of MB
The BuildDate property value is incorrect when testing via ipmitool
command and should be parsed as MB keyword instead of RAW.
Testd: BuildDate property value is correct via dbus, ipmitool commands
and unit test.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I6dd14d82df3b7f46b1717960a0a97df4a4c7e30e
diff --git a/test/parser/parser.cpp b/test/parser/parser.cpp
index 69b2005..139c4f2 100644
--- a/test/parser/parser.cpp
+++ b/test/parser/parser.cpp
@@ -18,6 +18,8 @@
auto vpdStore = parse(std::move(vpd));
assert(("P012" == vpdStore.get<Record::VINI, record::Keyword::CC>()));
+ assert(("2019-01-01-08:30:00" ==
+ vpdStore.get<Record::VINI, record::Keyword::MB>()));
}
}