Skip to content

Commit

Permalink
osfv_cli/src/osfv: Apply pre-commit changes
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Czapla <[email protected]>
  • Loading branch information
SebastianCzapla committed Sep 17, 2024
1 parent 8f2fdd8 commit 28766ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion osfv_cli/src/osfv/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ def main():
"-b",
"--bios",
action="store_true",
help="Adds \"-i bios --ifd\" to flashrom command",
help='Adds "-i bios --ifd" to flashrom command',
)
flash_erase_parser = flash_subparsers.add_parser(
"erase", help="Erase DUT flash with flashrom"
Expand Down
6 changes: 2 additions & 4 deletions osfv_cli/src/osfv/libs/rte.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ def load_model_data(self):
file_path = os.path.join(files("osfv"), "models", f"{self.dut_model}.yml")
# Check if the file exists
if not os.path.isfile(file_path):
raise UnsupportedDUTModel(
f"The {file_path} model is not yet supported"
)
raise UnsupportedDUTModel(f"The {file_path} model is not yet supported")

# Load the YAML file
with open(file_path, "r") as file:
Expand Down Expand Up @@ -336,7 +334,7 @@ def flash_write(self, write_file, bios=False):
self.flash_cmd(args)
if bios:
args = self.flash_create_args(f"-i bios --ifd -w {self.FW_PATH_WRITE}")
else:
else:
args = self.flash_create_args(f"-w {self.FW_PATH_WRITE}")
rc = self.flash_cmd(args, write_file=write_file)
time.sleep(2)
Expand Down

0 comments on commit 28766ea

Please sign in to comment.