diff mbox series

[1/4] tools/gen-releases-svg: use subprocess check_call instead of run

Message ID 20261119-gen-releases-svg-fixes-v1-1-b6245fbf8294@bootlin.com
State New
Headers show
Series tools/gen-releases-svg: fixes/improvements | expand

Commit Message

Antonin Godard Nov. 19, 2026, 7:55 a.m. UTC
We don't use the result of the command, so use check_call instead.

Suggested-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/tools/gen-releases-svg | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Comments

Quentin Schulz Nov. 19, 2026, 12:30 p.m. UTC | #1
Hi Antonin,

On 11/19/26 8:55 AM, Antonin Godard wrote:
> We don't use the result of the command, so use check_call instead.
> 
> Suggested-by: Quentin Schulz <quentin.schulz@cherry.de>
> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>

Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>

Thanks!
Quentin
diff mbox series

Patch

diff --git a/documentation/tools/gen-releases-svg b/documentation/tools/gen-releases-svg
index e091c02de..6a601b010 100755
--- a/documentation/tools/gen-releases-svg
+++ b/documentation/tools/gen-releases-svg
@@ -89,7 +89,4 @@  with tempfile.TemporaryDirectory() as tmpdir:
             mmd.write(f"    {codename} {series_version}{" (LTS)" if lts else ""}"
                       f" :{status}, {original_release_date}, {end_date}\n")
 
-    result = subprocess.run(
-        ["mmdc", "--input", mmdpath, "--output", args.output],
-        check=True,
-    )
+    subprocess.check_call(["mmdc", "--input", mmdpath, "--output", args.output])