From 28766ea0cff3be0bb028f356f1d6905b5f1eac75 Mon Sep 17 00:00:00 2001 From: Sebastian Czapla Date: Tue, 17 Sep 2024 12:50:37 +0200 Subject: [PATCH] osfv_cli/src/osfv: Apply pre-commit changes Signed-off-by: Sebastian Czapla --- osfv_cli/src/osfv/cli/cli.py | 2 +- osfv_cli/src/osfv/libs/rte.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/osfv_cli/src/osfv/cli/cli.py b/osfv_cli/src/osfv/cli/cli.py index 2c11245..d685477 100755 --- a/osfv_cli/src/osfv/cli/cli.py +++ b/osfv_cli/src/osfv/cli/cli.py @@ -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" diff --git a/osfv_cli/src/osfv/libs/rte.py b/osfv_cli/src/osfv/libs/rte.py index d22a9ad..4b328f5 100644 --- a/osfv_cli/src/osfv/libs/rte.py +++ b/osfv_cli/src/osfv/libs/rte.py @@ -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: @@ -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)