[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61682] [PATCH v3 1/1] gnu: buildah: Add 'buildah' package
From: |
Zongyuan Li |
Subject: |
[bug#61682] [PATCH v3 1/1] gnu: buildah: Add 'buildah' package |
Date: |
Sat, 25 Mar 2023 11:02:29 +0000 |
> On Mar 25, 2023, at 18:46, Liliana Marie Prikler <liliana.prikler@gmail.com>
> wrote:
>
> Can we try with fakeroot or something?
I did some research on source code, and find following code under buildah tests:
> func failTestIfNotRoot(t *testing.T) {
> u, err := user.Current()
> if err != nil {
> t.Log("Could not determine user. Running without root may cause
> tests to fail")
> } else if u.Uid != "0" {
> t.Fatal("tests will fail unless run as root")
> }
> }
There’s an hard coded uid. I haven’t seen any way to workaround it. Do we have
any
facility to run ‘check’ phase under an isolated environment(eg. container)?
Thanks