diff options
author | Evan Benn <evanbenn@chromium.org> | 2022-11-01 11:43:10 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-11-09 01:32:24 +0000 |
commit | c726a693d68f4169846811fdc332428b44cf7ab3 (patch) | |
tree | 1992d4b0745334218a8cc3d26528d538677f3c93 /util/flashrom_tester/src/tests.rs | |
parent | 8170c895689d72f2206169d749b69bd1eff7cebf (diff) | |
download | flashrom-c726a693d68f4169846811fdc332428b44cf7ab3.tar.gz flashrom-c726a693d68f4169846811fdc332428b44cf7ab3.tar.bz2 flashrom-c726a693d68f4169846811fdc332428b44cf7ab3.zip |
flashrom_tester: Use path types for things that are paths
Use Path and PathBuf for things that are paths.
BUG=b:243460685
BRANCH=None
TEST=/usr/bin/flashrom_tester --flashrom_binary /usr/sbin/flashrom host
TEST=/usr/bin/flashrom_tester --libflashrom host
Change-Id: I69531bec5436a60430eae975eeab02c8835962bf
Signed-off-by: Evan Benn <evanbenn@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/69064
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'util/flashrom_tester/src/tests.rs')
-rw-r--r-- | util/flashrom_tester/src/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flashrom_tester/src/tests.rs b/util/flashrom_tester/src/tests.rs index 3e1737e3..af342088 100644 --- a/util/flashrom_tester/src/tests.rs +++ b/util/flashrom_tester/src/tests.rs @@ -224,7 +224,7 @@ fn elog_sanity_test(env: &mut TestEnv) -> TestResult { const ELOG_RW_REGION_NAME: &str = "RW_ELOG"; env.cmd - .read_region_into_file(ELOG_FILE, ELOG_RW_REGION_NAME)?; + .read_region_into_file(ELOG_FILE.as_ref(), ELOG_RW_REGION_NAME)?; // Just checking for the magic numer // TODO: improve this test to read the events |