From 96d2414bf7983cea408097f207c15c18a93b903b Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 18 Apr 2021 09:51:35 +0200 Subject: [PATCH] ci: build.sr.ht: run all tests also as root --- .builds/archlinux.yml | 3 +++ .builds/freebsd.yml | 3 +++ .builds/openbsd.yml | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml index 0269b36..d8ebea7 100644 --- a/.builds/archlinux.yml +++ b/.builds/archlinux.yml @@ -5,3 +5,6 @@ tasks: - all: | cd safcm ./ci/run + # Also run all tests as root + sudo chown -Rh root:root . + sudo ./ci/run diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml index 1a96cb6..e5dba6d 100644 --- a/.builds/freebsd.yml +++ b/.builds/freebsd.yml @@ -7,3 +7,6 @@ tasks: sudo ln -sf /usr/local/bin/gmake /usr/bin/make cd safcm ./ci/run + # Also run all tests as root + sudo chown -Rh root:wheel . + sudo ./ci/run diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml index 6ba273e..7f1d40c 100644 --- a/.builds/openbsd.yml +++ b/.builds/openbsd.yml @@ -15,3 +15,7 @@ tasks: cd safcm # Go does not yet support -race on OpenBSD ./ci/run GOFLAGS= + # Also run all tests as root (-R and -h conflict on OpenBSD) + doas chown -R root:wheel . + # Remove $HOME hack once Go 1.16 is available + doas /bin/sh -c "HOME=$HOME ./ci/run GOFLAGS=" -- 2.43.2