From 0b993525f535f3e51ed33ca1fd302c36875a434d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 5 Sep 2021 23:33:39 +0200 Subject: [PATCH] build: Check sassc errors when generating stylesheet 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 6e402b61..599d098f 100644 --- a/meson/generate-stylesheets.py +++ b/meson/generate-stylesheets.py @@ -10,4 +10,4 @@ distroot = os.environ.get('MESON_DIST_ROOT') stylesheet_path = PurePath('data/gnome-classic.css') 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)