mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 09:00:55 +00:00
trivial: run Ubuntu CI target tests with "nobody" user account
This should ensure that self tests are never trying to access or create things they shouldn't be.
This commit is contained in:
parent
41c00ff404
commit
113c784ce4
@ -1592,4 +1592,9 @@
|
||||
<package>protobuf</package>
|
||||
</distro>
|
||||
</dependency>
|
||||
<dependency type="build" id="sudo">
|
||||
<distro id="ubuntu">
|
||||
<package variant="x86_64" />
|
||||
</distro>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -19,9 +19,11 @@ export LDFLAGS
|
||||
|
||||
root=$(pwd)
|
||||
rm -rf ${root}/build
|
||||
meson build -Dman=false -Ddocs=docgen -Dgusb:tests=false -Dplugin_platform_integrity=true --prefix=${root}/dist
|
||||
mkdir -p ${root}/build
|
||||
chown nobody build ${root}/subprojects
|
||||
sudo -u nobody meson build -Dman=false -Ddocs=docgen -Dgusb:tests=false -Dplugin_platform_integrity=true --prefix=${root}/dist
|
||||
#build with clang
|
||||
ninja -C build test -v
|
||||
sudo -u nobody ninja -C ${root}/build test -v
|
||||
|
||||
#make docs available outside of docker
|
||||
ninja -C build install -v
|
||||
ninja -C ${root}/build install -v
|
||||
|
Loading…
Reference in New Issue
Block a user