From 2e8fdcd8f15f0cb9ffc663c132626126c4ad1b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 6 Sep 2021 00:38:54 +0200 Subject: [PATCH] build: Check sassc errors when generating stylesheets We currently just call sassc, but don't check its return value. That means as long as sassc is available, the script (and therefore the newly added dist CI job) will succeed. Make sure we fail on failure. Part-of: --- meson/generate-stylesheets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson/generate-stylesheets.py b/meson/generate-stylesheets.py index 35242c68f..bd6b641b8 100644 --- a/meson/generate-stylesheets.py +++ b/meson/generate-stylesheets.py @@ -16,4 +16,4 @@ for stylesheet in stylesheets: stylesheet_path = PurePath(stylesheet) src = PurePath(sourceroot, stylesheet_path.with_suffix('.scss')) dst = PurePath(distroot, stylesheet_path) - subprocess.call(['sassc', '-a', src, dst]) + subprocess.run(['sassc', '-a', src, dst], check=True)