From 357ffb8934b77e624b1546e8e15eed84a7861355 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Stelmach?= Date: Tue, 19 Sep 2023 17:01:00 +0200 Subject: [PATCH] WIP: report problems with sfdisk(8) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: If69109b1d814f490c2650b6e1573ac77bf02649a Signed-off-by: Łukasz Stelmach --- scripts/tizen/sd_fusing.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/tizen/sd_fusing.py b/scripts/tizen/sd_fusing.py index 61ebcf4142..db846c267c 100755 --- a/scripts/tizen/sd_fusing.py +++ b/scripts/tizen/sd_fusing.py @@ -158,6 +158,11 @@ def mkpart(args): stdout=None, stderr=None, input=str(target.label).encode()) + if proc.returncode != 0: + logging.error(f"Failed to create partition a new table on {Device}") + logging.error(f"New partition table:\n" + str(target.label)) + sys.exit(1) + #TODO: mkfs def check_args(args): global Format -- 2.34.1