From 9070d03cb6621cab87098f2bf40415e9b9ce5b68 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Fri, 26 Jan 2024 13:50:36 +0100 Subject: [PATCH] GHA: Fix obs-server test container to own files created under /srv/obs/build by obsrun --- behave/container-setup-prebuilt-rpms.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/behave/container-setup-prebuilt-rpms.sh b/behave/container-setup-prebuilt-rpms.sh index b39488f307..a7b743442a 100644 --- a/behave/container-setup-prebuilt-rpms.sh +++ b/behave/container-setup-prebuilt-rpms.sh @@ -100,7 +100,7 @@ FILES="_buildenv _statistics rpmlint.log" for ARCH in $ARCHES; do for PACKAGE in $PACKAGES; do for FILE in $FILES; do - touch /srv/obs/build/test:factory/standard/$ARCH/$PACKAGE/$FILE + runuser -l obsrun -s /bin/bash -c "touch /srv/obs/build/test:factory/standard/$ARCH/$PACKAGE/$FILE" done done done