diff options
author | Nikolai Artemiev <nartemiev@google.com> | 2022-11-23 10:17:56 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-12-21 03:59:50 +0000 |
commit | 8b0250b32b89a54df16989369c0cb8330d86cb77 (patch) | |
tree | e55259c6fedd23af7998650726ff759cac90afb3 /util/flashrom_tester/flashrom/src/cmd.rs | |
parent | ff5beeef409515d0db84f1e902388590f5b15c44 (diff) | |
download | flashrom-8b0250b32b89a54df16989369c0cb8330d86cb77.tar.gz flashrom-8b0250b32b89a54df16989369c0cb8330d86cb77.tar.bz2 flashrom-8b0250b32b89a54df16989369c0cb8330d86cb77.zip |
flashrom_tester: Drop dediprog, ec, and servo targets
None of these targets have been maintained or used for several years:
dediprog:
- Wasn't accepted by the argument filter in main.rs.
ec:
- Is incompatible with most tests because the EC only supports one
protection range.
servo:
- Has been broken for >3 years because it uses the programmer string
"ft2231_spi:type=servo-v2", where "ft2231" should be "ft2232".
BUG=b:239357853
BRANCH=none
TEST=flashrom_tester on dedede
Change-Id: Iee94f6bb5ff8c5451acb8bcaabf28119006d0ef5
Signed-off-by: Nikolai Artemiev <nartemiev@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/69921
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'util/flashrom_tester/flashrom/src/cmd.rs')
-rw-r--r-- | util/flashrom_tester/flashrom/src/cmd.rs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/util/flashrom_tester/flashrom/src/cmd.rs b/util/flashrom_tester/flashrom/src/cmd.rs index 458f05405..f24a2c95f 100644 --- a/util/flashrom_tester/flashrom/src/cmd.rs +++ b/util/flashrom_tester/flashrom/src/cmd.rs @@ -391,35 +391,6 @@ fn flashrom_dispatch<S: AsRef<OsStr>>( Ok((stdout.into(), stderr.into())) } -pub fn dut_ctrl_toggle_wp(en: bool) -> Result<(Vec<u8>, Vec<u8>), FlashromError> { - let args = if en { - ["fw_wp_en:off", "fw_wp:on"] - } else { - ["fw_wp_en:on", "fw_wp:off"] - }; - dut_ctrl(&args) -} - -fn dut_ctrl(args: &[&str]) -> Result<(Vec<u8>, Vec<u8>), FlashromError> { - let output = match Command::new("dut-control").args(args).output() { - Ok(x) => x, - Err(e) => return Err(format!("Failed to run dut-control: {}", e).into()), - }; - if !output.status.success() { - // There is two cases on failure; - // i. ) A bad exit code, - // ii.) A SIG killed us. - match output.status.code() { - Some(code) => { - return Err(format!("Exited with error code: {}", code).into()); - } - None => return Err("Process terminated by a signal".into()), - } - } - - Ok((output.stdout, output.stderr)) -} - fn hex_range_string(s: i64, l: i64) -> String { format!("{:#08X},{:#08X}", s, l) } |