mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
flashrom_tester: Fix unit test error
Commit 065366d
(flashrom_tester: Change timestamp to UTC microsecond)
changed the time format, breaking the unit test. This patch
fixes the unit test.
BUG=None
BRANCH=None
TEST=cargo test
Change-Id: Iba42a9026b41ddb61bb704aa1c26783cd251d787
Signed-off-by: Evan Benn <evanbenn@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/69765
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
a2e5a7d75b
commit
d1c7dc0a0a
@ -153,9 +153,10 @@ mod tests {
|
||||
|
||||
assert_eq!(&buf[..5], "\x1b[35m");
|
||||
// Time is difficult to test, assume it's formatted okay
|
||||
// Split on the UTC timezone char
|
||||
assert_eq!(
|
||||
&buf[24..],
|
||||
" \x1b[33m[ INFO ]\x1b[0m Test message at INFO\n"
|
||||
buf.split_once("Z ").unwrap().1,
|
||||
"\x1b[33m[ INFO ]\x1b[0m Test message at INFO\n"
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user