From 7c05b59f9a0be833041f3c8d5e175358d9ceda02 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 9 Jul 2024 09:19:39 -0400 Subject: [PATCH] jjb: Skip gerrit lttng-modules checkouts for non-root users Change-Id: I9e43b7f944e145705ad592b65eefab466902ac22 Signed-off-by: Kienan Stewart --- scripts/lttng-tools/gerrit-depends-on.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/lttng-tools/gerrit-depends-on.sh b/scripts/lttng-tools/gerrit-depends-on.sh index e568578..5b55c82 100755 --- a/scripts/lttng-tools/gerrit-depends-on.sh +++ b/scripts/lttng-tools/gerrit-depends-on.sh @@ -59,6 +59,9 @@ git rev-list --format=%B --max-count=1 HEAD | while read -r line; do fi if [ "$project" = "lttng-modules" ]; then + if [ "$(id -u)" != "0" ]; then + continue + fi if [ -d "$WORKSPACE/src/lttng-modules" ]; then # Remove the regular modules sources to replace them with those # from the gerrit change -- 2.34.1