Remove the checking of physical switch in Finalize
Remove the preflight subtest in Finalize which verify developer
switch and verify hardware write-protection.
In this factory build, we don't have developer switch,
and we will not enable write-protection.
TEST=run factory_Finalize on dut
Reviewed-by: Chinyue Chen <firstname.lastname@example.org>
Reviewed-by: Hung-Te Lin <email@example.com>
Tested-by: Cheng-Yi Chiang <firstname.lastname@example.org>
diff --git a/client/site_tests/factory_Finalize/factory_Finalize.py b/client/site_tests/factory_Finalize/factory_Finalize.py
index d60d992..6bbc5f3 100644
@@ -53,16 +53,11 @@
self.items = [(self.check_required_tests,
create_label("Verify no tests failed\n"
- if developer_mode:
- # Items only enforced in non-developer mode.
- self.items += [(self.check_developer_switch,
- create_label("Turn off Developer Switch\n"
- create_label("Enable write protection pin\n"
+ # For this factory build, we don't need to verify developer switch,
+ # and we don't need to enable write protection either.
+ # Remove check_developer_switch and check_write_protect
+ # Check crosbug.com/p/10691 for related CL and bug.
""" Checks if developer switch button is disabled """