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



commit 0b993525f535f3e51ed33ca1fd302c36875a434d
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Sep 5 23:33:39 2021 +0200

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

 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 6e402b6..599d098 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)


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