[glib/wip/hadess/update-installed-tests-ci] ci: Fix permission error in valgrind analysis stage



commit 5a174d105d7525f9b53862d48b7a33d5974a9144
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 11 17:52:24 2019 +0100

    ci: Fix permission error in valgrind analysis stage
    
    The valgrind analysis stage inherits from existing artefacts, so make
    sure to reset the permissions on the glib build directory to avoid a new
    build failing.
    
    $ meson ${MESON_COMMON_OPTIONS} --werror -Dsystemtap=true -Ddtrace=true -Dfam=true -Dinstalled_tests=true 
_build
    <snip>
    PermissionError: [Errno 13] Permission denied: '/builds/GNOME/glib/_build/meson-logs/meson-log.txt'

 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6afbbe0ef..9b2b0857d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -112,6 +112,7 @@ installed-tests:
             _build
     - ninja -C _build
     - sudo ninja -C _build install
+    - sudo chown -R `id -un`:`id -gn` _build/
     # FIXME Install newer xdg-desktop-portal with
     # GMemoryMonitor support, see:
     # https://github.com/flatpak/xdg-desktop-portal/pull/365


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