[gnome-shell] build: Check sassc errors when generating stylesheets



commit 2e8fdcd8f15f0cb9ffc663c132626126c4ad1b87
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Sep 6 00:38:54 2021 +0200

    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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1974>

 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 35242c68fc..bd6b641b8e 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]