summaryrefslogtreecommitdiff
path: root/test/run_device_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_device_tests.py')
-rwxr-xr-xtest/run_device_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/run_device_tests.py b/test/run_device_tests.py
index 7a9730286e..9e7f384cb2 100755
--- a/test/run_device_tests.py
+++ b/test/run_device_tests.py
@@ -242,13 +242,13 @@ def power(board_config: BoardConfig, on: bool) -> None:
def hw_write_protect(enable: bool) -> None:
"""Enable/disable hardware write protect."""
if enable:
- state = 'on'
+ state = 'force_on'
else:
- state = 'off'
+ state = 'force_off'
cmd = [
'dut-control',
- 'fw_wp_en' + ':' + state,
+ 'fw_wp_state:' + state,
]
logging.debug('Running command: "%s"', ' '.join(cmd))
subprocess.run(cmd).check_returncode()