mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
flashrom_tester: Rename lock_test hwwp_locks_swwp_test
Rename lock_test to hwwp_locks_swwp_test. BUG=b:235916336 BRANCH=None TEST=None Change-Id: I6080622755ff16d8fba7044b38f9e09db0c62f97 Signed-off-by: Evan Benn <evanbenn@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/71972 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:
parent
195948a467
commit
69bbe7986c
@ -100,7 +100,7 @@ pub fn generic<'a, TN: Iterator<Item = &'a str>>(
|
|||||||
&("WP_Region_List", wp_region_list_test),
|
&("WP_Region_List", wp_region_list_test),
|
||||||
&("Erase_and_Write", erase_write_test),
|
&("Erase_and_Write", erase_write_test),
|
||||||
&("Fail_to_verify", verify_fail_test),
|
&("Fail_to_verify", verify_fail_test),
|
||||||
&("Lock", lock_test),
|
&("HWWP_Locks_SWWP", hwwp_locks_swwp_test),
|
||||||
&("Lock_top_quad", partial_lock_test(LayoutNames::TopQuad)),
|
&("Lock_top_quad", partial_lock_test(LayoutNames::TopQuad)),
|
||||||
&(
|
&(
|
||||||
"Lock_bottom_quad",
|
"Lock_bottom_quad",
|
||||||
@ -196,7 +196,7 @@ fn erase_write_test(env: &mut TestEnv) -> TestResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Verify that enabling hardware write protect prevents disabling software write protect.
|
/// Verify that enabling hardware write protect prevents disabling software write protect.
|
||||||
fn lock_test(env: &mut TestEnv) -> TestResult {
|
fn hwwp_locks_swwp_test(env: &mut TestEnv) -> TestResult {
|
||||||
if !env.wp.can_control_hw_wp() {
|
if !env.wp.can_control_hw_wp() {
|
||||||
return Err("Lock test requires ability to control hardware write protect".into());
|
return Err("Lock test requires ability to control hardware write protect".into());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user